DynamicChart Class
Item Index
Properties
- DEFAULT_AXE_MARGIN
- DEFAULT_AXES_COLOR
- DEFAULT_AXES_LABEL_SIZE
- DEFAULT_AXES_LINE_WIDTH
- DEFAULT_INNER_BACKGROUND
- DEFAULT_INNER_BORDER
- DEFAULT_LABEL_SIZE
- DEFAULT_OUTER_BACKGROUND
- DEFAULT_OUTER_BORDER
- DEFAULT_TITLE_SIZE
- FILL_COLORS
- LEGEND_ITEM_FONT_SIZE
- LEGEND_ITEM_HEIGHT
- LEGEND_ITEM_LEFT
- LEGEND_ITEM_WIDTH
- LEGEND_MARGIN
- MAX_SPACE_DIMENSION
- NOTCH_LINE_LENGTH
Methods
BasicBarChart
-
width
-
height
-
[chartMargins=""]
-
[dataDim=1]
-
[parent=body]
Parameters:
-
width
Number[Mandatory] The desired width for the chart (can't be changed later)
Can be any value that is or can be converted to a positive integer. -
height
Number[Mandatory] The desired height for the chart (can't be changed later)
Can be any value that is or can be converted to a positive integer. -
[chartMargins=""]
String optional[Optional] A String of 0 to 4 space-separated values that specifies the 4 margins of the chart.
The string should respect the following format: "top right bottom left;" (notice the trailing semicolon)
If less then 4 values are passed, only the covered subfield will be assigned using the input string, while the remaining ones will take a default value specified as an inner attribute of the class. -
[dataDim=1]
Number optional[Optional] The dimension of the data space, i.e. the number of subvalues for each data entry
Can be any value that is or can be converted to an integer between 1 and MAXSPACEDIMENSION. -
[parent=body]
Object optional[Optional] The DOM element to which the diagram should be appended as a child
Returns:
FixedWidthBarChart
-
ticks
-
startingPoint
-
width
-
height
-
[chartMargins=""]
-
[dataDim=1]
-
[parent=body]
Parameters:
-
ticks
Number[Mandatory] The number of values that can be drawn at the same time (can't be changed later)
Can be any value that is or can be converted to a positive integer. -
startingPoint
Number[Mandatory, but not used at the moment: inserted for future back-compatibility]
The reference for the label of the first point.
Should be an incrementable value; -
width
Number[Mandatory] The desired width for the chart (can't be changed later)
Can be any value that is or can be converted to a positive integer. -
height
Number[Mandatory] The desired height for the chart (can't be changed later)
Can be any value that is or can be converted to a positive integer. -
[chartMargins=""]
String optional[Optional] A String of 0 to 4 space-separated values that specifies the 4 margins of the chart.
The string should respect the following format: "top right bottom left;" (notice the trailing semicolon)
If less then 4 values are passed, only the covered subfield will be assigned using the input string, while the remaining ones will take a default value specified as an inner attribute of the class. -
[dataDim=1]
Number optional[Optional] The dimension of the data space, i.e. the number of subvalues for each data entry
Can be any value that is or can be converted to an integer between 1 and MAXSPACEDIMENSION. -
[parent=body]
Object optional[Optional] The DOM element to which the diagram should be appended as a child
Returns:
SlidingBarChart
-
ticks
-
width
-
height
-
[chartMargins=""]
-
[dataDim=1]
-
[parent=body]
Parameters:
-
ticks
Number[Mandatory] The number of values that can be drawn at the same time (can't be changed later)
Can be any value that is or can be converted to a positive integer. -
width
Number[Mandatory] The desired width for the chart (can't be changed later)
Can be any value that is or can be converted to a positive integer. -
height
Number[Mandatory] The desired height for the chart (can't be changed later)
Can be any value that is or can be converted to a positive integer. -
[chartMargins=""]
String optional[Optional] A String of 0 to 4 space-separated values that specifies the 4 margins of the chart.
The string should respect the following format: "top right bottom left;" (notice the trailing semicolon)
If less then 4 values are passed, only the covered subfield will be assigned using the input string, while the remaining ones will take a default value specified as an inner attribute of the class. For this particular chart the right margin can't be less than AXESLABELWIDTH pixel wide (if a smaller value is passed, it will be overwritten). -
[dataDim=1]
Number optional[Optional] The dimension of the data space, i.e. the number of subvalues for each data entry
Can be any value that is or can be converted to an integer between 1 and MAXSPACEDIMENSION. -
[parent=body]
Object optionalThe DOM element to which the diagram should be appended as a child
Returns:
TimeWheelChart
-
ticks
-
startTime
-
width
-
height
-
[chartMargins=""]
-
[dataDim=1]
-
[parent=body]
Parameters:
-
ticks
Number[Mandatory] The number of values that can be drawn at the same time (can't be changed later) Can be any value that is or can be converted to a positive integer.
-
startTime
String[Mandatory] The reference for the label of the first point.
Should be an incrementable value. -
width
Number[Mandatory] The desired width for the chart (can't be changed later)
Can be any value that is or can be converted to a positive integer. -
height
Number[Mandatory] The desired height for the chart (can't be changed later)
Can be any value that is or can be converted to a positive integer. -
[chartMargins=""]
String optional[Optional] A String of 0 to 4 space-separated values that specifies the 4 margins of the chart.
The string should respect the following format: "top right bottom left;" (notice the trailing semicolon)
If less then 4 values are passed, only the covered subfield will be assigned using the input string, while the remaining ones will take a default value specified as an inner attribute of the class. -
[dataDim=1]
Number optional[Optional] The dimension of the data space, i.e. the number of subvalues for each data entry
Can be any value that is or can be converted to an integer between 1 and MAXSPACEDIMENSION. -
[parent=body]
Object optional[Optional] The DOM element to which the diagram should be appended as a child
Returns:
Properties
DEFAULT_AXE_MARGIN
Number
private
final
Default axes margin (in pixels);
DEFAULT_AXES_COLOR
Number
private
final
Default line width for axes and notches;
Default: = "black"
DEFAULT_AXES_LABEL_SIZE
Number
private
final
Default size of axes' labels lext
Default: = 14
DEFAULT_AXES_LINE_WIDTH
Number
private
final
Default line width for axes and notches;
Default: = 1
DEFAULT_INNER_BACKGROUND
String | Object
private
final
Default background color for the main chart area.
Default: = "white"
DEFAULT_INNER_BORDER
Object
private
final
Default border for the main chart area.
Default: = none
DEFAULT_LABEL_SIZE
Number
private
final
Default size for chart's labels (in points);
DEFAULT_OUTER_BACKGROUND
String | Object
private
final
Default background color for the outer chart area.
Default: = "white"
DEFAULT_OUTER_BORDER
Object
private
final
Default border for the outer chart area.
Default: = none
DEFAULT_TITLE_SIZE
Number
private
final
Default size for chart's title text (in points);
FILL_COLORS
Array
private
final
Default fill colors bor graphic elements;
LEGEND_ITEM_FONT_SIZE
Number
private
final
Default font size for labels attached to legend's items (in pixel);
LEGEND_ITEM_HEIGHT
Number
private
final
Default height for legend's item boxes (in pixel);
LEGEND_ITEM_LEFT
Number
private
final
Default left margin for legend's items (in pixel);
LEGEND_ITEM_WIDTH
Number
private
final
Default width for legend's item boxes (in pixel);
LEGEND_MARGIN
Number
private
final
Default margin for legends (in pixel);
MAX_SPACE_DIMENSION
Number
private
final
Maximum dimension of the input space, i.e. max number of subvalues for each single point
NOTCH_LINE_LENGTH
Number
private
final
Length of notch lines, in pixels;
Default: = 5