Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
305
Capture PERCENT_VALUE in ChartDataClicked event
posted

How do I capture PERCENT_VALUE inside of ChartDataClicked event? Basically I would like to display the percentage of the slice clicked (on a pie chart) in a text box that I have added to the chart using primitives, but not sure how to get the PERCENT_VALUE.  Could somebody give a code example to solve the above problem?

 

Parents
No Data
Reply
  • 28496
    Suggested Answer
    Offline posted

    unfortunately this information is gone by the time ChartDataClicked is invoked on the server, due to the fact that only the image and a few other pieces of information are serialized between the client & server.  in order to get the percent value, it is necessary to loop through the datasource and calculate it yourself.

Children
No Data