We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Essential JS1 series click event


Hy,

is there any way to get an event when the user clicks on any series?


This works - but we use the option "enableCanvasRendering: true". If I set this option in the demo (play ground) the information of the series is lost.

Best Regards,
Martin/B&R

3 Replies

BV Bhuvanesh Valarman Syncfusion Team September 19, 2019 12:10 PM UTC

Hi Martin, 

Greetings from Syncfusion. 

We have analyzed your query. From that we suggest you to use the “pointRegionClick” event to achieve your requirement. 
Please find the code snippet and sample below. 
In that sample we have used “pointRegionClick” event to get series, which will fire clicking on the series points region and return with series index and point index. 

Code Snippet:  

 


Screenshot:  
 
 

Kindly revert us, if you have any concern about this. 

Regards, 
Bhuvanesh V. 



MA Martin Aumair September 19, 2019 12:50 PM UTC


Thanks for the answer. The solution only works for the bar chart but not for StepLine or Line type because you have to always click directly on a data point.
Is there any solution for StepLine?


BV Bhuvanesh Valarman Syncfusion Team September 20, 2019 01:12 PM UTC

Hi Martin, 

Thanks for the update. 

We have analyzed your query. For stepline and line type series “pointRegionClick” will fire when you click on the exact point location. 
Please refer below screenshot for the point location. Point location can easily identify by enabling marker, so we have enabled the marker for the stepline series. There is no support to find the series if we click on other region in canvas mode. 

Screenshot:  
 
 

Kindly revert us, if you have any concern about this. 

Regards, 
Bhuvanesh V. 


Loader.
Live Chat Icon For mobile
Up arrow icon