jahnvi25
Posts: 284
Joined: Thu Oct 04, 2012 12:16 pm

highstock issue with annotations and flag series

we recently upgraded highstock version from 9.2 to 10.1 and we are having some issues.
adding annotation and selecting annotation is not behaving correctly.

instructions to re-create

1. after loading, click on '6m' to load 6m charts and navigator will still show full data.
2. click on 'add flags' .. this will add series with type == 'flags' which has one date which is not visible on plot area.
3. click on 'add lines' and try to add line.. you will notice it does not add annotation at the mouse location.
4. click on ' add circle' and try the same.. circle will not added at the mouse location.. now select circle and try to drag a bit.. sometimes drawn circle will just disappear.
5. now comment data point with date -- Date.UTC(2021, 10, 1) from flag series.. and repeat above steps.. but everything will work just as expected without any issue..

this works fine with version 9.2. Am i missing some new configuration setting ?


https://jsfiddle.net/j4c723pa/2/
hubert.k
Posts: 1164
Joined: Mon Apr 11, 2022 11:48 am

Re: highstock issue with annotations and flag series

Hello jahnvi25,
Thank you for contacting us with your issue.

This issue is reported as a bug, you can find the GitHub tickets here:
https://github.com/highcharts/highcharts/issues/17128
https://github.com/highcharts/highcharts/issues/16784

As a workaround, you can set the xAxis.ordinal to false and the problem will go away. You can read more about this property in the documentation.

Demo: https://jsfiddle.net/BlackLabel/uhk2xg8v/
API Reference: https://api.highcharts.com/highstock/xAxis.ordinal

Feel free to ask any further questions!
Regards!
Hubert Kozik
Highcharts Developer
jahnvi25
Posts: 284
Joined: Thu Oct 04, 2012 12:16 pm

Re: highstock issue with annotations and flag series

Thanks for prompt reply. but i have to wait till bug is fixed to upgrade.. our business requirement does not allow setting ordinal == false.

is there any other alternative to this ?

https://github.com/highcharts/highcharts/issues/16784

this seems to be very old and still not fixed..
hubert.k
Posts: 1164
Joined: Mon Apr 11, 2022 11:48 am

Re: highstock issue with annotations and flag series

jahnvi25,
Please leave your feedback on mentioned tickets and ask for an estimated time of arrival for the fix.

Regards!
Hubert Kozik
Highcharts Developer

Return to “Highcharts Stock”