This is a migrated thread and some comments may be shown as answers.
How to make the Stack Bars overlap.(Make the bars start from zero)
4 Answers 44 Views
This is a migrated thread and some comments may be shown as answers.
diandian82
Top achievements
Rank 1
diandian82 asked on 30 Aug 2010, 07:19 AM
Hi Telerik,

I have a requirement to implement. After searching a lot, i still can't find a way of doing it,
Here is the senario( Please reference the attached image),

We are using Stack Bars in our chart, you know, the second group of stack bars will stack on the first group stack bars. Only the first group bars can start from 0.

What we want,
1. All groups of stack bars starts from X-axis( which is 0). They should overlap for each column. Is it possible to implement?
2. If we bind the data to chart, the label of bar will show actual number. Is there any way we can change it to whatever text we want?

Thanks and best regards,
George



4 Answers, 1 is accepted

Sort by
0
diandian82
Top achievements
Rank 1
answered on 31 Aug 2010, 03:07 PM
Anybody can help me out?
0
Yavor
Telerik team
answered on 01 Sep 2010, 09:56 AM
Hello,

Onto your questions:

1.The series cannot be overlapped in such a manner. You can use a different chart type, if this setup does not meet your requirements well.
2. You can directly set the label for a datapoint, as shown below:

<telerikCharting:DataSeries LegendLabel="Turnover">
<telerikCharting:DataSeries.Definition>
<telerikCharting:LineSeriesDefinition >
</telerikCharting:LineSeriesDefinition>
</telerikCharting:DataSeries.Definition>
<telerikCharting:DataPoint YValue="154" XCategory="Jan" Label="custom text"/>
<telerikCharting:DataPoint YValue="138" XCategory="Feb"/>
<telerikCharting:DataPoint YValue="143" XCategory="Mar"/>

I hope this information helps.

Sincerely yours,
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
diandian82
Top achievements
Rank 1
answered on 02 Sep 2010, 08:49 AM
Thanks for your reply.

Could you tell me which chart type i should use for this scenrio?

George
0
Yavor
Telerik team
answered on 02 Sep 2010, 12:10 PM
Hello,

The following article:

http://www.telerik.com/help/silverlight/radchart-features-chart-types-2d-charts.html

contains a list of all the available chart types. You can review it and see which type meets your requirements best - I assume a stacked bar (100%) is closest to your setup.

All the best,
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
diandian82
Top achievements
Rank 1
Answers by
diandian82
Top achievements
Rank 1
Yavor
Telerik team
Share this question
or