Skip to main content

Chart API overview

Methods

NameDescription
destructor()removes a calendar 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

NameDescription
resizefires on changing the size of the chart container
serieClickfires on clicking a series
toggleSeriesfires on toggle on/off a series in a legend
important

Use DataCollection events to work with data.

Properties

NameDescription
cssadds style classes to Chart
dataspecifies an array of data objects to set into the chart
legenddefines the configuration of a chart legend
maxPointsdisplays an average number of values in case a data set is too large to show all the values in the chart
scalesdefines configuration of chart scales
seriesdefines configuration of chart series
typespecifies the type of a chart