blacklabel / annotations

Annotations plugin for Highstock by Black Label
http://blacklabel.github.io/annotations/
Other
22 stars 16 forks source link

Annotations not working properly on multiple series with multiple y axes #44

Open YousraLED opened 9 years ago

YousraLED commented 9 years ago

Hi, I am trying to use the annotations on my data that has multiple y axes that have very different mins and maxes. I am trying to link the annotations to different series by using the series ID however the annotation only appears on the first series (I think it does that by default or something). If I use the the second series's ID. the annotation appears as if its using the first series's axis.
I tried adding annotations on data with multiple series but only one y-axis and the annotations appeared properly. Is this a bug or am I missing something?

Thanks

pawelfus commented 9 years ago

Indeed, it looks like something is hardcoded. Have you tried to set annotation.yAxis? If this not resolve the issue, then could you setup jsfiddle demo with that issue? We will check this.

sebastianbochan commented 8 years ago

The annotation is added only for the first yAxis.

Demo:

Try to add any shape to second pane. Not possible.

morganfree commented 7 years ago

Demo with new annotations with multiple y-axes - http://jsfiddle.net/7zomjrc0/1/