Check documentation for the latest version of dhtmlxSuite addSeries DHTMLX Docs

addSeries

adds the new data property representation and redraws the chart

void addSeries(object obj,string view,string value,string color,string label);
objobjecta data object
viewstringthe chart type
valuestringproperty of dataset which representation you'd like to add to the chart
colorstringthe template for the color of the property items
labelstringthe template for the labels of the property items

Example

myChart.addSeries({
    value:"#sales1#",
    color:"#45abf5",
    label:"#sales1#"
});

Details

The method allows representing several data propeties on one chart at the same time.

Not applicable to Pie and Scatter charts.

See also
Back to top