blacklabel / indicators

Indicators plugin for Highstock by Black Label
http://blacklabel.github.io/indicators/
Other
35 stars 12 forks source link

Unable to add indicator when the series is added dynamically #16

Closed arnabk closed 9 years ago

arnabk commented 9 years ago

Please refer to this JSFiddle http://jsfiddle.net/arnabk/74dzr6gz/3/

pawelfus commented 9 years ago

Please refer to this docs: https://github.com/blacklabel/indicators

id: id of series

And:

type: type of indicator (one of: 'sma', 'ema', 'atr', 'rsi')

Working demo: http://jsfiddle.net/74dzr6gz/4/

arnabk commented 9 years ago

Please check this example. Open console to see the error message. http://jsfiddle.net/arnabk/74dzr6gz/9/ image Am I doing anything wrong?

pawelfus commented 9 years ago

That part looks like a bug. Reopening

pawelfus commented 9 years ago

If you are in hurry, you can edit #982 line:

if(exportingFlag && chart.series[0]) {
...
}

I think that should be enough, I will check exportingFlag - if this is even required still.