ItemWidthPercent problem

4 posts, 0 answers
  1. he seaman
    he seaman avatar
    10 posts
    Member since:
    May 2010

    Posted 25 Nov 2010 Link to this post

    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!!
  2. Evgenia
    Admin
    Evgenia avatar
    1437 posts

    Posted 30 Nov 2010 Link to this post

    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
  3. he seaman
    he seaman avatar
    10 posts
    Member since:
    May 2010

    Posted 30 Nov 2010 Link to this post

    Thank you! I know you mean,but I have tow SeriesMappings, and i want to control every SeriesMapping's ItemWidth!
    How can i do!
  4. Evgenia
    Admin
    Evgenia avatar
    1437 posts

    Posted 03 Dec 2010 Link to this post

    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
Back to Top