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

Bar Chart

1 Answer 68 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Vijay
Top achievements
Rank 1
Vijay asked on 24 Oct 2016, 09:36 AM

Hi Team,

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

Regards,

Vijay Sankar S

 

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 25 Oct 2016, 04:10 PM
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!
Tags
ChartView
Asked by
Vijay
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or