Bars Radchart

8 posts, 0 answers
  1. Grtjn
    Grtjn avatar
    129 posts
    Member since:
    Feb 2010

    Posted 08 Mar 2010 Link to this post

    Hi,

    My question is if it is possible that you stop bars to adjust themselves.
    To explain this:
    When I have 3 values in a chart, i get those wide bars.
    When there are 10 values, i get smaller ones.
    When i put + 20 values, the bars overlay.

    I have to have 24 values in a chart and i want them to be small and not touching eachother.

    Plz help!

    Kind regards,

    Gj
  2. Velin
    Admin
    Velin avatar
    391 posts

    Posted 10 Mar 2010 Link to this post

    Hello GJ DM,

    By default, the bar items will not touch or overlap if the ChartArea.ItemWidthPercent property value is less than 100.The chart control divides the available space in equal parts and each bar is placed inside the corresponding part. Then the ChartArea.ItemWidthPercent property value is applied to adjust the actual width of the bar(it defaults to 80 percents of the space).

    The width of the bars is dynamically calculated based on the available space and you can not set it as a hard coded value.  


    Best wishes,
    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.
  3. ErrolM
    ErrolM avatar
    7 posts
    Member since:
    Sep 2009

    Posted 22 Apr 2010 Link to this post

    Hello Velin,

    I find that the bars do indeed overlap with the default of 80 as shown in the attached screenshots.
    Is there another property that affects this calculation?

    Thanks,
    Errol

  4. Velin
    Admin
    Velin avatar
    391 posts

    Posted 28 Apr 2010 Link to this post

    Hello Errol Melvin,

    Please, provide some more details on the way you have set up the chart control and the version of the Telerik assemblies you use. Source code will be highly appreciated. Thanks.

    Regards,
    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.
  5. David Glass
    David Glass avatar
    3 posts
    Member since:
    Oct 2009

    Posted 28 Apr 2010 Link to this post

    this sounds like the same bug I reported in Bug Report # 295132.

    One approach (though not ideal) is to set the TicksDistance of AxisX to 1.  My approach was to use XCategories instead of XValues and to pad any missing slots with zeros.
  6. Lian
    Lian avatar
    3 posts
    Member since:
    Jun 2010

    Posted 30 Jun 2010 Link to this post

    I have the same problem. Has this been resolved?
  7. Velin
    Admin
    Velin avatar
    391 posts

    Posted 05 Jul 2010 Link to this post

    Hi Lian,

    We suggest you to try tweaking the bars width using the ChartArea.ItemWidthPercent. In case you don't have success with this we would ask you to send us more details for the way you've set up the chart control in order to be able to investigate and provide a solution. Thanks.

    All the best,
    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
  8. Lian
    Lian avatar
    3 posts
    Member since:
    Jun 2010

    Posted 06 Jul 2010 Link to this post

    I believe this has been fixed in the latest Q2 beta release.
Back to Top