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

highstock annotation with scrollbar

I have several charts on one page and browser scrolling is enabled and along with that i have annotation enabled on one chart
so when user clicks on pencil icon to draw line on chart.. everything works fine on desktop but on mobile safari (have not tested on android) instead of drawing line.. it starts scrolling (browser scrolling event) charts and user is not able to draw line properly.. how can i stop that ?

thanks
bastss
Site Admin
Posts: 1192
Joined: Wed Oct 17, 2018 10:59 am

Re: highstock annotation with scrollbar

Hi jahnvi25,

Through highstock annotation do you mean chart like in this example with the possibility of drawing lines on it? DEMO: https://www.highcharts.com/stock/demo/a ... tock-chart. Notice that drawing lines on mobile devices is possible by clicking start and end points, not by sliding a finger on the screen.

Best regards!
Sebastian Wędzel,
Highcharts Developer
jahnvi25
Posts: 284
Joined: Thu Oct 04, 2012 12:16 pm

Re: highstock annotation with scrollbar

currently we are using following plugin

https://www.highcharts.com/products/plu ... nnotations

thats giving us issue with scrollbar

Thanks
bastss
Site Admin
Posts: 1192
Joined: Wed Oct 17, 2018 10:59 am

Re: highstock annotation with scrollbar

Hi jahnvi25,

Unfrontunetly this is the old bug, still left unrepaired. https://github.com/blacklabel/annotations/issues/30 The only solution which we could imply is to use annotations module from the previous example.

Best regards!
Sebastian Wędzel,
Highcharts Developer
jahnvi25
Posts: 284
Joined: Thu Oct 04, 2012 12:16 pm

Re: highstock annotation with scrollbar

one more quick question along the same line..
is there a API to get information about annotation. ? we have requirement to save all the annotations in database and restore them next time when user logs on.

old annotation module does not work on ipad.. so decided to switch to new module..

Thanks
bastss
Site Admin
Posts: 1192
Joined: Wed Oct 17, 2018 10:59 am

Re: highstock annotation with scrollbar

Hello jahnvi25,

All information how to create annotations you can find here: https://api.highcharts.com/highstock/annotations. The information about created annotations you can find on chart object, like in this example: http://jsfiddle.net/BlackLabel/kymfg5b2/.

Best regards!
Sebastian Wędzel,
Highcharts Developer

Return to “Highcharts Stock”