eachSeries

iterates over Chart series

array eachSeries(function handler);

Parameters

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

Returns

arrayan 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 samples

See also
Back to top