addSeries

adds the new data property representation and redraws the chart. The method allows to represent several data propeties on one chart at the same time

void addSeries(object obj,string view,string value,string color,string label);

Parameters

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
  • not applicable to Pie and Scatter charts
See also
Back to top