Creates a new SvgChartConfig instance with properties from parameter. Note: config parameter object is referenced.
Optional
props: objectObject with all non-default properties.
Whether language direction is ltr.
Series array.
Title of chart.
Chart type.
Callback when x axis label is selected. Parameters are SvgChart and x axis column index.
Padding object.
Left will be set by code, depends on direction.
Right will be set by code, depends on direction.
Default padding for space between elements.
Width of legend squares or circles.
Whether the value box should be displayed when an element has focus.
Callback that returns a custom string to display when an item receives focus.
Fill color of focused value box.
Font color of focused value box.
Padding of focused value box.
Draw function to execute in the config phase. It receives a SvgChart and HTMLElement parameter.
function(svgChart, groupNode) {
groupNode.appendChild(svgChart.el('rect', {
x: 10,
y: 10
}));
}
Draw function to execute in the chart phase. It receives a SvgChart and HTMLElement parameter.
function(svgChart, groupNode) {
groupNode.appendChild(svgChart.el('rect', {
x: 10,
y: 10
}));
}
transition - Whether the chart elements should be faded in or nor.
Background color of the SVG element.
Font fanily for all text elements.
Fontsize for the title.
Font color of title.
Horizontal position of title. Can be one of: center, start, end.
Vertical position of title. Can be one of: top, bottom, center.
Maximum value. Required for charts with Y-axes.
Minumum value of Y axis. Required for charts with Y-axes.
Font size of axes titles.
Font size of axes labels.
X axis title.
If this is a number X, than the x axis title will be positioned X pixels from the bottom. If this is null, then the title will be positioned paddingDefault pixesl from the bottom.
Line width of the x axis grid.
Color of x axis grid lines.
Stroke dash array value for the x axis grid lines. See https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dasharray.
Font color of xaxis labels.
Font color of x axis title.
Whether the xaxis grid should be displayed.
Outside padding for x axis grid.
Whether x axis labels should be displayed.
Whether the x axis labels should be below (false) or between (true) the x axis grid lines. For bar charts this will always be set to true.
Whether xAxisGridColumns should be selectable. If this is true, the x axis labels can be clicked and selected.
Opacity value for the selected xAxisGridColumn.
Background color for a selected xAxisGridColumn.
The text anchor value for x axis labels. For example if you want vertical labels that should be aligned to the x axis, you can set this to 'start'. See https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/text-anchor.
Number of pixels that the x axsis labels will be positioned from the bottom x axis grid line.
Degrees for the x axis labels.
Steps between x axis grid lines.
Steps between x axis labels.
Number of pixels the y axis labels should be positioned from the start. If this is null, this will be defaultPadding pixels.
Line width of the y axis grid.
Color of y axis grid lines.
Stroke dash array value for the y axis grid lines. See https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dasharray.
Font color of y axis labels.
Font color of y axis title.
Steps between y axis grid lines.
Steps between y axis labels.
Whether the y axis grid should be displayed.
Whether y axis labels should be displayed.
Outside padding for y axis grid.
Font size for legend labels.
Font color of legend labels.
Whether legends should be squares (false) or circles (true)
Whether clicking on a legend hides and shows a the serie.
Position of legend. Possible values: bottom, top, end.
If not null, number of pixels the legend should be positioned from the bottom. Otherwise a default number of pixels will be used.
Width of line for line charts.
Radius of line points for line charts.
Whether null values should be connected or not.
Whether lines should be curved or not.
Whether line charts should be filled or not.
Whether the lines should display points or not.
Opacity of bars.
Spacing in pixels between bars.
Width of bar border.
Whether bars should be stacked.
Opacity of pie and donut charts.
With of donuts. Of not given a default value is used.
Stroke color for pie charts.
Width of stroke for pie charts. If this is 0, no stroke is painted.
Stroke color for donut charts.
Width of stroke for donut charts. If this is 0, no stroke is painted.
Static
getGet direction string to use for dom direction attribute.
Config object.
Attribute value.
Generated using TypeDoc
SvgChart config class.