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

Bar Charts 2D or 3D

3 Answers 59 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Mickael
Top achievements
Rank 1
Mickael asked on 26 May 2011, 09:30 AM

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,

3 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 31 May 2011, 07:11 AM
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
0
Mickael
Top achievements
Rank 1
answered on 31 May 2011, 10:14 AM
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,
0
Yavor
Telerik team
answered on 02 Jun 2011, 07:51 AM
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
Tags
Chart
Asked by
Mickael
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Mickael
Top achievements
Rank 1
Share this question
or