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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Essential JS1 series click event

Thread ID:

Created:

Updated:

Platform:

Replies:

147643 Sep 18,2019 12:54 PM UTC Sep 20,2019 01:12 PM UTC JavaScript - EJ 2 3
loading
Tags: Chart
Martin Aumair
Asked On September 18, 2019 12:54 PM UTC


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

Bhuvanesh Valarman [Syncfusion]
Replied On 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. 


Martin Aumair
Replied On 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?

Bhuvanesh Valarman [Syncfusion]
Replied On 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. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon