blacklabel / annotations

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

Annotation on bar chart doesn't work properly. #54

Open HenryYan2012 opened 8 years ago

HenryYan2012 commented 8 years ago
  1. Create a annotation on a horizontal bar chart. before resize browser
  2. View it on a smaller browser. You will see the position is incorrect. after rezie browser
pawelfus commented 8 years ago

Could you setup jsfiddle with the issue? We will check this. Have you set xValue and yValue to make sure annotation is linked to x-y vlaue, not x-y (pixels) position? See API.

HenryYan2012 commented 8 years ago

@pawelfus Please check http://jsfiddle.net/z4eg8pmr/ You could add an circle annotation on it, and resize the result window. Then will see the issue. I believe it is linked to x-y value.

pawelfus commented 8 years ago

Indeed, looks buggy. When using column series (not inverted chart) it works fine.

Thank you for reporting!

pawelfus commented 8 years ago

Internal note:

Looks like values in drop event are not udated and group still has translate() in the SVG. Other thing to check is if we have proper axes when chart is inverted.