series Array

The configuration of the chart series.

The series type is determined by the value of the type field. If a type value is missing, the type is assumed to be the one specified in seriesDefaults.

Some options accept function as argument. They will be evaluated for each point (supplied as parameter). The theme/seriesDefaults value will be used if no value is returned.

Example - configure the chart series

<div id="chart"></div>
  series: [
    { type: "line", data: [1, 2, 3] },
    { type: "bar", data: [4, 5, 6] }
In this article