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.
Unfortunately, activation email could not send to your email. Please try again.

Multi Level Doughnut onPointClick

Thread ID:





127879 Dec 15,2016 04:14 AM Jul 10,2017 08:44 AM JavaScript 5
Tags: ejChart
Asked On December 15, 2016 04:14 AM


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 01:21 AM

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 04:15 AM


thanks for the help.


Dharanidharan Dharmasivam [Syncfusion]
Replied On December 18, 2016 11:51 PM

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 04:51 AM

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 08:44 AM

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.

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.