5 Answers, 1 is accepted
Thank you for writing.
Note that by default the BarPointElements have a border 1 px and it participates in the calculation for drawing the rectangle. That is why when the value is so small and the border's width is subtracted the height of the BarPointElement is 0. The possible solution that I can suggest is eliminating the border by using the following code snippet:
I hope this information helps. Should you have further questions I would be glad to help.
Hi Dess :)
Thank you for your reply.
Your code worked. Now I have another question. May you help me please?
Question is : How to set width for bar element or bar series?!
Because when I have one series with one bar element and one category my bar element is so wide.
thanks so much.
Thank you for writing back.
The bar element is automatically stretched considering the ticks' range for the specific value. However, you can control the width by the GapLength property of the horizontal axis. The bigger the gap is, the smaller the bar element is. You can refer to the second part of the following help article for additional information: https://docs.telerik.com/devtools/winforms/chartview/series-types/bar
I hope this information helps. If you have any additional questions, please let me know.
I would like to note that this thread is related to RadChartView. However, according to the screenshots, your question doesn't seem to be related to RadChartView. I would kindly ask you to submit a support ticket with the relevant product and give us as much detailed information as possible about the exact goal that you are trying to achieve. Thus, our support staff will gladly assist you.
Thank you for your understanding.