Documentation

addSeries

adds an additional graph to the chart

void addSeries(object obj);

Parameters

objobjectthe graph configuration object

See also

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.

Back to top