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

Bar Serie size

2 Answers 83 Views
Chart
This is a migrated thread and some comments may be shown as answers.
andrea bellagamba
Top achievements
Rank 1
andrea bellagamba asked on 05 Jul 2010, 03:50 PM
Hi
I am usig a chart with a BarSeriesDefinition and Zoom and Scroll functions.
My problem is that when I zoom in, the with of the displayed bars becoems to big.
Is there a way to set a maximum swidth for the Bars?

Please see attacchment...

thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay
Telerik team
answered on 08 Jul 2010, 10:09 AM
Hi andrea bellagamba,

You can alter the size of the bars using the ItemWidthPercent property :
RadChart1.DefaultView.ChartArea.ItemWidthPercent = 30;

Setting the ItemWidthPercent to a small(ish) value should be a sufficient way to reduce the bar size. Please, let us know if this is helpful in your scenario.

Greetings,
Nikolay
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
andrea bellagamba
Top achievements
Rank 1
answered on 08 Jul 2010, 10:34 AM
yes I already went for that solution, it works partially, it would be better to have Setter for the Width.
 But Thanks
Tags
Chart
Asked by
andrea bellagamba
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
andrea bellagamba
Top achievements
Rank 1
Share this question
or