user2137186
user2137186

Reputation: 837

Highcharts undefined in dynamic highcharts

Snap shot of code

I am passing some json data from some functions to function live(data) and its also being called after every two seconds by a function with data="".But I am getting this chart var declared on line 217 as undefined. help will be appreciated:)

Upvotes: 1

Views: 468

Answers (1)

Ricardo Lohmann
Ricardo Lohmann

Reputation: 26320

The this keyword refers to the chart inside load callback.

So change to:

var length = this.series.length;

Upvotes: 4

Related Questions