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

Fixing barsize in barchart view.

2 Answers 17 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Ganesh
Top achievements
Rank 1
Ganesh asked on 09 Mar 2015, 09:21 AM
Is it possible to set the size for Bars in the bar chart view for win forms.

Regards,
Ganesh. K

2 Answers, 1 is accepted

Sort by
0
Accepted
Ralitsa
Telerik team
answered on 11 Mar 2015, 07:34 AM
Hi Ganesh,

Thank you for contacting us. 

The size of the bars in a bar series chart is defined by the number of data points and the available plot area. You can control how much space the bars take for each individual tick though the GapLenght property. Here is the code snippet: 
(barSeries.HorizontalAxis as CategoricalAxis).GapLength = 0.75;

More information about the GapLenght property can be found here: BarSeries

I hope this will help. Do not hesitate to write back with further questions. 

Regards,
Ralitsa
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Ganesh
Top achievements
Rank 1
answered on 12 Mar 2015, 04:57 AM
Thank you Ralitsa :)
Tags
ChartView
Asked by
Ganesh
Top achievements
Rank 1
Answers by
Ralitsa
Telerik team
Ganesh
Top achievements
Rank 1
Share this question
or