Bar Charts 2D or 3D

4 posts, 0 answers
  1. Mickael
    Mickael avatar
    18 posts
    Member since:
    Feb 2011

    Posted 26 May 2011 Link to this post

    Hello,

    I have a question regarding bar charts.

    On this type of chart I need to be able to modify the height of each bar (like on a usual bar charts) but also the width of each bar (this is less usual...).

    So all those bars need to be modifiable in height and width and have to be stuck together (no space between them).

    Is it possible to achieve that with your library ? Do I need to use a special chart ? in 2D or 3D?

    Thank you in advance for your help,

    Regards,

  2. Yavor
    Admin
    Yavor avatar
    11 posts
    Member since:
    Dec 2013

    Posted 31 May 2011 Link to this post

    Hi Mickael,

    You can use the ItemWidthPercent property for the control, to govern how wide the bars will be:

    RadChart1.DefaultView.ChartArea.ItemWidthPercent = 120;

    You can thus achieve overlapping, or rendering within a portion of the initial width.
    I hope this information helps.

    Best wishes,
    Yavor
    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. Mickael
    Mickael avatar
    18 posts
    Member since:
    Feb 2011

    Posted 31 May 2011 Link to this post

    Hi,

    Thanks for the info, this propety is indeed usefull (to stick the bars together for instance..) but this not exactly what we are looking for.

    In your example if we set the ItemWidthPercent to 120 it will applies to all bars in the charts area, and they will all have the same value (120).

    We want to be able to modify the width of each bar independently, one could be 120, another 80, another 140...

    I hope I have been more clear on our needs.

    Thanks for your help.

    Regards,

  4. Yavor
    Admin
    Yavor avatar
    11 posts
    Member since:
    Dec 2013

    Posted 02 Jun 2011 Link to this post

    Hello Mickael,

    The required functionality is not available out of the box at present. One approach which you could try is to retemplate the bars, and alter the height and width, or bind them dynamically. This may be similar to the approach shown here:

    http://demos.telerik.com/silverlight/#Chart/MVVM

    In addition to binding the color, you can bind the width/height of the element.
    I hope this information helps.

    Greetings,
    Yavor
    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

Back to Top