gopal
Posts: 4
Joined: Wed Jan 12, 2022 7:12 am

Unable to Custom Button along the Yaxis with corresponding event

Hi Team

I trying to add a button on y axis along with the default title. on click of the button, i need a event which would return the object of the selected item. However im unable implement it. Can you kindly let me know how to proceed on this further
michal.f
Posts: 1114
Joined: Thu Aug 12, 2021 12:04 pm

Re: Unable to Custom Button along the Yaxis with corresponding event

Hello,

Thanks for contacting us with your question!

You can use SVG Renderer to generate a button on the chart. Your logic of returning an object you can base on built-in select and unselect events for points after setting allowPointSelect property to true for series.

More about SVG Renderer you can read in our API: https://api.highcharts.com/class-refere ... rer#button

Demo: https://jsfiddle.net/BlackLabel/30z42g5m/
API: https://api.highcharts.com/highcharts/p ... ointSelect
https://api.highcharts.com/highcharts/s ... nts.select
https://api.highcharts.com/highcharts/s ... s.unselect

Let me know if that was what you were looking for!
Best regards!
Michał Filipiec
Highcharts Developer
https://blacklabel.pl/highcharts/

Return to “Highcharts Gantt”