blacklabel / annotations

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

Wrong line annotation - OLCH chart #53

Open antoniorg10 opened 8 years ago

antoniorg10 commented 8 years ago

Hello, i'm trying to draw a line correctly but my xValue and yValue not displayed in the correct position of the chart.

I set my first XValue in February 1 but the line appears on Jan 21, the same applies in the YValue http://jsfiddle.net/antoniorg10/mtjemebv/4/

thank you very much

pawelfus commented 8 years ago

Thanks for reporting!

It looks like the default values (center/middle) for anchorX and anchorY cause that offset. When setting strictly left and top the line will work fine, check: http://jsfiddle.net/mtjemebv/5/

Internal note: Probably we should change default values, to the ones listed above, in this line - it is very confusing, I think.

antoniorg10 commented 8 years ago

Thanks for your answer, That's right! with these chart attributes, the line is properly displayed, again thank you very much