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

dragging of plotline

Tue Aug 15, 2023 12:23 am

is there a way i can add dragging of plotlines ? i am looking for highstock's Xaxis's plot line

Thanks

jedrzej.r
Posts: 519
Joined: Tue Jan 24, 2023 11:21 am

Re: dragging of plotline

Wed Aug 16, 2023 9:44 am

Hi!

Thanks for reaching out to us with your question!

Unfortunately, there isn't any built-in option for dragging plot lines and it would require extending its' functionality with dragging possibilities. Perhaps you might be interested in a solution based on this topic: viewtopic.php?f=12&t=50424. This approach requires adding a line annotation with control point disabled and dragging enabled only for x-axis.

Demo: https://jsfiddle.net/BlackLabel/jv7yut25/

Let me know if that was what you were looking for!
Best regards!
Jędrzej Ruta
Highcharts Developer

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

Re: dragging of plotline

Fri Aug 25, 2023 2:48 pm

sorry for late reply.. this would work perfectly..

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

Re: dragging of plotline

Fri Aug 25, 2023 4:02 pm

actually one more question.. i do have situation where i need to show chart as inverted.. in that situation dragging works.. but icon does not work.. like

https://jsfiddle.net/iVestBl/dos0fhu3/

how can i change the icon ?

Thanks

jedrzej.r
Posts: 519
Joined: Tue Jan 24, 2023 11:21 am

Re: dragging of plotline

Mon Aug 28, 2023 8:42 am

Hi!

Do you mean the cursor icon that appears when hovering over the annotation? In this case, you can simply change it after adding the annotation by setting propriate cursor.

Demo: https://jsfiddle.net/BlackLabel/r26wjfzm/

Let me know if that was what you were looking for!
Best regards!
Jędrzej Ruta
Highcharts Developer

Return to “Highcharts Stock”