This is a migrated thread and some comments may be shown as answers.

Chart Data Selection

3 Answers 128 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Richard P
Top achievements
Rank 1
Richard P asked on 17 Oct 2018, 09:56 AM

Dear Telerik team, 

I have requirement to display detail data when click on selection data in chart. Is it possible using telerik chart ?

For Example :

I have pie chart that shows Gender percentage, Male 40%, Female 60 %. I want to display detail when click on Male.

If possible, please give me example how to do it.

 

Thanks in advance

 

3 Answers, 1 is accepted

Sort by
0
Stefan Nenchev
Telerik team
answered on 22 Oct 2018, 08:48 AM
Hi, Richard,

In order to achieve the desired outcome, you can take advantage of the ChartSelectionBehavior. Eventually, you can use the SelectionChanged event to show additional data for the data point which has been selected. For example, you can show a popup page designed according to your needs and expose additional properties of the business object within it. I have attached a sample project that shows such approach. I am using the Telerik DataForm to show some additional properties. Also, the Rg.Plugins.Popup is used.

Please have a look at the attached sample and consider a similar approach at your end. Of course, you are not limited to using the same setup, you can show any element of your choice based on the selection of the chart.

Have a great week.

Regards,
Stefan Nenchev
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Divya
Top achievements
Rank 1
answered on 02 May 2019, 10:02 AM

Hi Stefan

I have one issue with Telerik charts

Application is crashing randomly when we tap on a chart section to go to detail, sometimes it doesn’t fire selection event and sometime when it fires it gives null reference exception.and sometimes when we tap on chart selection then our application is terminating even its not giving any error.

please reproduce it

Thanks In Advance

 

0
Yana
Telerik team
answered on 03 May 2019, 01:34 PM
Hi Divya,

I noticed there is a separate thread on this topic and I would ask you to continue the communication there:
https://www.telerik.com/forums/application-is-crashing-randomly-in-xamarin-forms-ios-project-when-we-try-to-use-chartselectionbehavior-in-donutseries-and-barseries

Regards,
Yana
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Chart
Asked by
Richard P
Top achievements
Rank 1
Answers by
Stefan Nenchev
Telerik team
Divya
Top achievements
Rank 1
Yana
Telerik team
Share this question
or