Accepted answer

Solution is to store addSeries on load event, and use stored function when adding series. Live example:

        events: {
            load: function (event) {
                foo = this.addSeries;
            addSeries: function (event) {
                if (iterator) {
          , {
                        data: [100, 200, 100, 100, 200, 300]



Still you can stick with plotLine only. If the position of the line is static that is the best way.

If the position is dynamic then you can still go with plotLine. There are events for adding and removing plotLine on the fly.

API link removePLotLine() : addPlotLine() :

I hope this will help you.

Related Query

More Query from same tag