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

ItemWidthPercent problem

3 Answers 66 Views
Chart
This is a migrated thread and some comments may be shown as answers.
he seaman
Top achievements
Rank 1
he seaman asked on 25 Nov 2010, 08:27 AM
i have two SeriesMappings, and want to contol every   SeriesMappings's chartarea.
but when i  execute " RadChart1.SeriesMappings[0].ChartArea.ItemWidthPercent=100" ,It can not work!!

3 Answers, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 30 Nov 2010, 03:57 PM
Hi he seaman,

The width of the bars can generally be altered using the ItemWidthPercent property like this :
chart.DefaultView.ChartArea.ItemWidthPercent = 100;

I hope this information helps.

Regards,
Evgenia
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
he seaman
Top achievements
Rank 1
answered on 01 Dec 2010, 01:53 AM
Thank you! I know you mean,but I have tow SeriesMappings, and i want to control every SeriesMapping's ItemWidth!
How can i do!
0
Evgenia
Telerik team
answered on 03 Dec 2010, 03:16 PM
Hello he seaman,

Setting different Bars Width for two or more Series Mappings is not possible with RadChart for Silverlight. The width depends on the axis range, the number of major / minor ticks and the ticks distance. After all these factors are taken into account, the bar width percent reduces the bar size by a percentage of the determined size. Knowing this I hope you understand that it is not possible to set different Width for every SeriesMapping you have. We are sorry for the inconvenience.
Also have in mind that using ChartArea.ItemWidthPercent property you can control all Bars width.

Best wishes,
Evgenia
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
Chart
Asked by
he seaman
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
he seaman
Top achievements
Rank 1
Share this question
or