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

Width of Bar charts

1 Answer 70 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Manish Kumar
Top achievements
Rank 1
Manish Kumar asked on 10 Jan 2011, 02:27 PM
Hi

Is there any way if we can control the width of the bar charts programeetically so that if only one bar is all you have to display do not occupy most of the chart area.

thanks
manish

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 12 Jan 2011, 10:13 AM
Hello Manish,

You can alter the size of the bars using the ItemWidthPercent property :

radChart.DefaultView.ChartArea.ItemWidthPercent = 50;

The smaller this value is the smaller the bar size.
I hope this information helps.

Best wishes,
Evgenia
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
Chart
Asked by
Manish Kumar
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or