Skip to main content

eachSeries()

iterates over Chart series

eachSeries(handler: (seria: ISeria) => any): any[];

Parameters:

handler: function - a handler function that takes an array with series objects as a parameter

Returns:

An array with the result of iteration.

Example

var chart = new dhx.Chart("chart", {    type: "radar",    scales: {        radial:{            value: "month",            maxTicks: 7        }    },    series: [        {            id: "A",            value: "company A",            fill: "#000000",            alpha: 0.3,            color: "#000000"        },        {            id: "B",            value: "company B",            fill: "#FFFF33",            alpha: 0.3,            color: "#FFFF33"        }    ]});
chart.eachSeries(function(seria){    seria.config.fill});// -> ["#394E79", "#5E83BA", "#C2D2E9"]

Related sample: Chart. Each Series