Bar Chart

2 posts, 0 answers
  1. Vijay
    Vijay avatar
    1 posts
    Member since:
    Mar 2014

    Posted 24 Oct Link to this post

    Hi Team,

    Is there a way to create a chart like attached image?

    Regards,

    Vijay Sankar S

     

  2. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 25 Oct Link to this post

    Hi Vijay,

    You can use RadCartesianChart with a BarSeries to display the data. You can use the OriginValue property of the series to determine the value from where the bars will start drawing. For example, if the origin value is 0, the data points with values lower than the origin (negative values) will be drawn from 0 to the negative value. And data points with bigger values than the origin value will be drawn from 0 to the positive value.

    To determine the color of the bar you can use the series' DefaultVisualStyle property along with a IValueConverter to choose the proper color. 

    You can find such visualization demonstrated in the attached project.​ 

    Regards,
    Martin
    Telerik by Progress
    Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top