score:2

Accepted answer

you can modify chart options just before passing passing them to the chart constructor by using complete callback function (http://api.highcharts.com/highcharts/data.complete).

in your example in can look similar to this:

complete: function(options) {
  // create the second series
  options.series.push({
    data: []
  });

  // move the data to the second series
  var d0 = options.series[0].data,
    d1 = options.series[1].data;

  d1.push(d0.pop(), d0.pop());

}

live working demo: http://jsfiddle.net/kkulig/72xkzsxv/


Related Query

More Query from same tag