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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Chart column response to mouse click

Thread ID:





126006 Sep 16,2016 10:58 PM UTC Sep 19,2016 05:47 AM UTC ASP.NET Web Forms 1
Tags: Chart
Roimer Machacón Otero
Asked On September 16, 2016 10:58 PM UTC

Hi we're using charts with columns types, now we're watching the drilldown in pie chart, exist a form of a column chart, the series respond to mouse click event.

Example: By clicking with thw mouse on a serie, get the value of the column of the serie and execute any event (display a modal, etc)

Dharanidharan Dharmasivam [Syncfusion]
Replied On September 19, 2016 05:47 AM UTC

Hi Roimer, 

Thanks for using the Syncfusion product. 

We have analyzed your query and prepared a sample with respect to your requirement. In the sample by using OnClientPointRegionClick event we have obtained values of the column series and displayed in the alert box. Kindly find the code snippet below, 
Code Snippet: 

<ej:chart runat="server" OnClientPointRegionClick="onclick">  

function onclick(sender) { 
          alert("Series Index:"+ sender.data.region.SeriesIndex+"\n"+"Point Index:" + sender.data.region.Region.PointIndex +  
                "\nMouse Position X :" + sender.data.location.x + "\nMouse Position Y :" + sender.data.location.y + "\nChart X:" + sender.model.m_AreaBounds.X 
                + "\nChart Y:" + sender.model.m_AreaBounds.Y) 


For your reference we have attached the sample. Kindly find the sample from below location, 


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