addSeries

adds an additional graph to the chart

void addSeries(object obj);
objobjectthe graph configuration object

Example

var barchart = webix.ui({
    view:"chart",
    type:"bar",
    value:"#sales#",
    color:"#58dccd"
    ...
});
 
barchart.addSeries({
    value:"#sales2#",
    color:"#36abee",
});
barchart.parse(multiple_dataset);

Details

The method is used to present multiple graphs on a chart. It's an analog to the series property.
Graphs are specified in a standard way.

If you add to the chart graphs of the same type, you can omit the type attribute.

See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.
If you have not checked yet, be sure to visit site of our main product Webix html5 framework and page of javascript charting product.