Segmented bar chart

4 posts, 0 answers
  1. Sebastián Soto
    Sebastián Soto avatar
    11 posts
    Member since:
    Jun 2017

    Posted 07 Dec 2017 Link to this post

    Its possible to create bars like in the attach? Could be with the same color.
  2. Yana
    Admin
    Yana avatar
    5043 posts

    Posted 11 Dec 2017 Link to this post

    Hello Sebastián Soto,

    RangeBar series feature is currently not achievable through the Xamarin.Forms implementation of the RadChart control. We have it logged in our Feedback Portal, you can vote for it and subscribe to status changes at the following link:
    Add RangeBarSeries to Chart.

    In the meantime, you could achieve it for Android and iOS after customizing the native controls - through custom renderers. Here are the articles that describe how to achieve the behavior on the different platforms:
     
    So basically, you can create custom renderers to access the native controls and configure the setup through them.

    Give it a try and if you have any additional questions or concerns, let me know.

    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
  3. Sebastián Soto
    Sebastián Soto avatar
    11 posts
    Member since:
    Jun 2017

    Posted 12 Dec 2017 in reply to Yana Link to this post

    Hi Yana,

    Thank you for the feedback, i'm trying to run a test calling it from a Xamarin Forms project because this is how the project was built. i'm using an interface for Android to implement it but i'm getting this error:

    Cannot implicitly convert type 'Com.Telerik.Widget.Chart.Visualization.CartesianChart.RadCartesianChartView' to 'Xamarin.Forms.View'

    Do you know what i missing?

     

  4. Yana
    Admin
    Yana avatar
    5043 posts

    Posted 15 Dec 2017 Link to this post

    Hi Sebastián,

    I have attached an example in Android to demonstrate how you could create a RangeBarSeries,  you could check the code inside CustomChartRenderer class. 

    Please download the attachment and give it a try. If you have any additional questions on the implementation, please let me know.

    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