Chart API overview
Methods
Name | Description |
---|---|
destructor() | removes a chart instance and releases the occupied resources |
eachSeries() | iterates over Chart series |
getSeries() | returns an object with configuration of a specified series |
paint() | repaints a chart on a page |
setConfig() | sets configuration of a chart |
important
Use DataCollection methods to work with data.
Events
Name | Description |
---|---|
resize | fires on changing the size of the chart container |
serieClick | fires on clicking a series |
toggleSeries | fires on toggle on/off a series in a legend |
important
Use DataCollection events to work with data.
Properties
Name | Description |
---|---|
css | Optional. Adds style classes to Chart |
data | Optional. Specifies an array of data objects to set into the chart |
exportStyles | Optional. Defines the styles that will be sent to the export service when exporting Chart to PDF/PNG |
legend | Required for Treemap charts, optional for other types of charts. Defines the configuration of a chart legend |
maxPoints | Optional. Displays an average number of values in case a data set is too large to show all the values in the chart |
scales | Required. Defines configuration of scales for Line, Spline, Bar, X-Bar, Area, SplineArea, Radar, and Scatter charts |
series | Required. Defines configuration of chart series |
type | Required. Specifies the type of a chart |
Export methods
Name | Description |
---|---|
png() | Exports a chart to a PNG file |
pdf() | Exports a chart to a PDF file |