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

Any way to set the width of bars individually?

1 Answer 115 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 12 May 2016, 08:23 PM

Are there any properties on a BarPointElement, for example, that I can use to set the width of any given bar in a series separately from the others?

 

I already know how to get to the the point element to do formatting, just don't know what to set to get what I want. Kind of like the gap with but individually, not for the whole axis...

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 16 May 2016, 03:41 PM
Hi Steve,

Thank you for writing.

RadChartView is a highly customizable control exposing API for drawing custom point elements. In order to achieve your task, you would need to paint a custom BarSeriesDrawPart . You can perform a validation for each of the data points and on your logic change the element`s width or height.

Detailed information on how the API is working is available here: Custom Rendering. I am also sending you attached a sample project which I believe should get you going. 

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo Merdjanov
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
ChartView
Asked by
Steve
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or