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

keyboard shortcut for annotation

we are using customized version of stock GUI (annotations) .. and we would like to set up some hotkeys or keyboard navigation for adding/editing and deleting line and other annotation.. how can i do it ?
michal.f
Posts: 1114
Joined: Thu Aug 12, 2021 12:04 pm

Re: keyboard shortcut for annotation

Hello,

To create an annotation dynamically, you can use the chart.addAnnotation() method

Demo: https://jsfiddle.net/BlackLabel/szqxc598/
API: https://api.highcharts.com/class-refere ... Annotation

Best regards!
Michał Filipiec
Highcharts Developer
https://blacklabel.pl/highcharts/
jahnvi25
Posts: 284
Joined: Thu Oct 04, 2012 12:16 pm

Re: keyboard shortcut for annotation

Thanks a lot..for help. i am using keyPress event and adding annotation manually. this is working as expected
michal.f
Posts: 1114
Joined: Thu Aug 12, 2021 12:04 pm

Re: keyboard shortcut for annotation

You're welcome! In case of any further questions, feel free to contact us again.

Regards!
Michał Filipiec
Highcharts Developer
https://blacklabel.pl/highcharts/

Return to “Highcharts Stock”