How to make the Stack Bars overlap.(Make the bars start from zero)

5 posts, 0 answers
  1. diandian82
    diandian82 avatar
    13 posts
    Member since:
    Jul 2007

    Posted 30 Aug 2010 Link to this post

    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



  2. diandian82
    diandian82 avatar
    13 posts
    Member since:
    Jul 2007

    Posted 31 Aug 2010 Link to this post

    Anybody can help me out?
  3. DevCraft banner
  4. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 01 Sep 2010 Link to this post

    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
  5. diandian82
    diandian82 avatar
    13 posts
    Member since:
    Jul 2007

    Posted 02 Sep 2010 Link to this post

    Thanks for your reply.

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

    George
  6. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 02 Sep 2010 Link to this post

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