Chart Data Selection

4 posts, 0 answers
  1. Richard P
    Richard P avatar
    3 posts
    Member since:
    Jun 2017

    Posted 17 Oct 2018 Link to this post

    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

     

  2. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    665 posts

    Posted 22 Oct 2018 Link to this post

    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
  3. Divya
    Divya avatar
    5 posts
    Member since:
    Mar 2019

    Posted 02 May in reply to Stefan Nenchev Link to this post

    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

     

  4. Yana
    Admin
    Yana avatar
    4915 posts

    Posted 03 May Link to this post

    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
Back to Top