Adding extra lines to existing chart

Is it possible to create a chart (line) with a single line (using XML), then after the chart.parse() has been called to add to that chart using addSeries().

The scenario is the user is tracking the price of an item overtime, so they click that item which generates a chart, the user then selects another item, which is added to the existing chart for comparison.

Thanks :slight_smile:

Yes, addSeries can be called after parse(). But in this case you need to call refresh() method to redraw charts.
chart.parse(…);
chart.addSeries(…);
chart.refresh();