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 | adds style classes to Chart |
data | specifies an array of data objects to set into the chart |
legend | defines the configuration of a chart legend |
maxPoints | displays an average number of values in case a data set is too large to show all the values in the chart |
scales | defines configuration of chart scales |
series | defines configuration of chart series |
type | specifies the type of a chart |