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

Multi Level Doughnut onPointClick

Thread ID:





127879 Dec 15,2016 09:14 AM UTC Jul 10,2017 12:44 PM UTC JavaScript 5
Tags: ejChart
Asked On December 15, 2016 09:14 AM UTC


can anyone provide assistance on a multilevel doughnut chart 'onPointClick' event.   I need to get the exact cell I have clicked on.   using this 'sender.model.primaryXAxis.labels[sender.data.region.Region.PointIndex] ' I can get one part, but I cant seem to get both references to tell me the exact cell I have clicked on.

Any assistance on this would be greatly appreciated


Anandaraj T [Syncfusion]
Replied On December 16, 2016 06:21 AM UTC

Hi Trevor, 


Thanks for using Syncfusion products. 


Query #1: I need to get the exact cell I have clicked on 


We can achieve this requirement using the pointRegionClick event of chart widget. We have prepared a simple sample for this requirement in the following link 




Please refer the following code snippet to achieve this 




                //Other chart configurations                 
                pointRegionClick: 'onclick', 
        function onclick(sender) { 
            //Index of the clicked point 
            var pointIndex = sender.data.region.Region.PointIndex, 
                //Index of the series 
                seriesIndex = sender.data.region.Region.SeriesIndex, 
                //Get point object using series index and point index 
                dataPoint = sender.model.series[seriesIndex].points[pointIndex]; 
             //alert is used for demonstration purpose 
             alert("X value : " + dataPoint.x 
                + "\n Y value : " + dataPoint.y 
                + "\n Text : " + dataPoint.text); 
              //Other operations after clicking chart 


Please let us know if you have any concern. 




Replied On December 16, 2016 09:15 AM UTC


thanks for the help.


Dharanidharan Dharmasivam [Syncfusion]
Replied On December 19, 2016 04:51 AM UTC

Hi Trevor, 
Thanks for your update. 
Kindly revert us, if you need further assistance on this. 


Preethi Nesakkan Gnanadurai [Syncfusion]
Replied On July 7, 2017 08:51 AM UTC

I'm sorry, but we were unable to automatically parse the data from this email.

Could you please ensure that you fill in the 'Current Promise Date' field in the table in YYYY-MM-DD format, and also add any comments you need to in the comments field in the table next to each line item you wish to update.

Best Regards

Dharanidharan Dharmasivam [Syncfusion]
Replied On July 10, 2017 12:44 PM UTC

Hi Trevor, 
Thanks for your update, 
Since we are not clear with your query, kindly provide more information on your query. Also, we would like to know whether the addressed query is related to chart component, so that we can analyze and provide you the solution sooner. 



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

or the page will be automatically redirected to 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