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

[Solved] BarWidthPercent and BarOverlapPercent

5 Answers 170 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Grtjn
Top achievements
Rank 1
Grtjn asked on 08 Mar 2010, 01:50 PM
How can I set these properties in my code-behind (c#)?

Because I'm not able to set them in my .Xaml page:

<

 

Telerik_Windows_Controls:RadChart Margin="91,65,98,55" x:Name="RadChart1" d:LayoutOverrides="Width, Height"/>

Hope someone can tell me, because I can't find it on the net...

Gj

 

5 Answers, 1 is accepted

Sort by
0
Velin
Telerik team
answered on 10 Mar 2010, 01:18 PM
Hello GJ DM,

There is a property named ItemWidthPercent exposed by the ChartArea type which you can use to adjust the width of the bar items in percents.

Greetings,
Velin
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
Grtjn
Top achievements
Rank 1
answered on 10 Mar 2010, 02:16 PM
Big thank you Velin.
Works just fine!

Gertjan
0
Simon Wolters
Top achievements
Rank 1
answered on 23 Apr 2010, 04:53 PM
€: got it, nevermind ;)
0
Sam
Top achievements
Rank 1
answered on 04 Jan 2011, 05:37 PM
ItemWidthPercent adjusts the width of the entire chart area, but what about bar overlap?  How do you set (either in XAML, style or code-behind) the BarOverlapPercent?  In other words, what if you want to have some space between each of the bars in a bar or stackedbar chart?

Thanks
0
Sia
Telerik team
answered on 06 Jan 2011, 02:30 PM
Hi Sam Coffman,

In Silverlight such property has not been exposed yet. It is most likely to be introduced with our next Service Pack and its name will be ItemOverlapPercent.

Kind regards,
Sia
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
Chart
Asked by
Grtjn
Top achievements
Rank 1
Answers by
Velin
Telerik team
Grtjn
Top achievements
Rank 1
Simon Wolters
Top achievements
Rank 1
Sam
Top achievements
Rank 1
Sia
Telerik team
Share this question
or