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

custom annotation parallel channels -- tunnels

I have requirement where we have custom button on which when user clicks. it should perform same as stock GUI --> draw parallel channels
i know i can add custom annotation called tunnels for that.. but is there a way i can just use navigation binding on my custom button/icon outside of stock GUI ? or how can i do this without using whole stock GUI toolbar..

Thanks
michal.f
Posts: 1114
Joined: Thu Aug 12, 2021 12:04 pm

Re: custom annotation parallel channels -- tunnels

Hello,

Thanks for contacting us with your question!

You can show only Parallel Channels button without any other.

Demo: [*]https://jsfiddle.net/BlackLabel/cu3k8a69/
API: https://api.highcharts.com/highstock/st ... ui.buttons

Let me know if that was what you were looking for!
Best regards!
Michał Filipiec
Highcharts Developer
https://blacklabel.pl/highcharts/
jahnvi25
Posts: 284
Joined: Thu Oct 04, 2012 12:16 pm

Re: custom annotation parallel channels -- tunnels

Thanks for reply. but i want my button to exist outside of stock GUI.. almost like
stockTools: {
gui: {
enabled:false
}
}

but then on the same screen i have custom button 'Click lines' when user clicks on this.. i would want to perform same as action as parallel lines..
can i use className: 'highcharts-parallel-channel' to my custom button ?
jahnvi25
Posts: 284
Joined: Thu Oct 04, 2012 12:16 pm

Re: custom annotation parallel channels -- tunnels

i found out from forum/api documentation of what i needed to do..

Highstock is great product with great support..
Thanks again.
michal.f
Posts: 1114
Joined: Thu Aug 12, 2021 12:04 pm

Re: custom annotation parallel channels -- tunnels

I'm glad I could help.

You can share a solution here for people who would have a similar problem and will find this post.

Feel free to ask any further questions!
Best regards!
Michał Filipiec
Highcharts Developer
https://blacklabel.pl/highcharts/
jahnvi25
Posts: 284
Joined: Thu Oct 04, 2012 12:16 pm

Re: custom annotation parallel channels -- tunnels

couple of more questions on same topic.
1. how can i easily save/restore annotations ? do i have to save whole chart.annotations (array) ? or is there a easy way (may be smaller json or something)
2.how can i customize annotation editing popup ? can i build my own ?

Thanks
michal.f
Posts: 1114
Joined: Thu Aug 12, 2021 12:04 pm

Re: custom annotation parallel channels -- tunnels

Hi,

Answering your questions:
1. Here you have a post about it: viewtopic.php?t=42687
2. Yes, you can customize it with CSS classes.

Let me know if you have any further questions!
Best regards!
Michał Filipiec
Highcharts Developer
https://blacklabel.pl/highcharts/

Return to “Highcharts Stock”