Show zero values in RadCartesianChart

1 Answer 28 Views
ChartView
Jennifer
Top achievements
Rank 1
Jennifer asked on 01 Feb 2022, 12:14 AM

In a RadCartesianChart, zero values and very small values (relative to the Maximum of the axis) don't show up.  I would like to have them show up as a horizontal line, like in the attached picture.

I got that picture by setting a small value for y.  But if you increase the height the chart, it starts to look like the bar has some height rather than just being a horizontal line.

Is there a better way to get zeros to show up?

 

 

1 Answer, 1 is accepted

Sort by
1
Accepted
Martin Ivanov
Telerik team
answered on 03 Feb 2022, 12:22 PM

Hello Jennifer,

There is no built-in mechanism for this scenario, but you can achieve your requirement by defining a MinHeight for the bars and offset them a bit with their Margin property. You can see this approach shown in the attached project. I hope that helps.

Regards,
Martin Ivanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
ChartView
Asked by
Jennifer
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or