Reorder the sequence of Bar Chart

Thread is closed for posting
4 posts, 0 answers
  1. Jun Ting
    Jun Ting avatar
    26 posts
    Member since:
    Nov 2007

    Posted 28 Mar 2010 Link to this post

    hi,

    How to reorder the item in axis-X? I would like the show the sequence in "New, First Call, Follow up, Keep In View, Sold, Close, Failed".
    (Please refer to attached file.)

    Is it possible to set the datacolumn for axis-Y ?

  2. Ves
    Admin
    Ves avatar
    2926 posts

    Posted 31 Mar 2010 Link to this post

    Hello Jun Ting,

    RadChart will display the items according to their initial order in the underlying datasource. So, you need to sort the data in the desired order before sending it to the chart.

    All the best,
    Ves
    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. Jun Ting
    Jun Ting avatar
    26 posts
    Member since:
    Nov 2007

    Posted 09 Apr 2010 Link to this post

    Hi, how to set the datacolumn for axis-Y?

    When i add a new column for sorting (Data Type is int) ? I can't get the correct result.
  4. Ves
    Admin
    Ves avatar
    2926 posts

    Posted 14 Apr 2010 Link to this post

    Hello Jun Ting,

    I have attached a small example, showing how to sort the X axis labels in grouping scenario.

    The Y axis  datacolumn is the column, which provides the values for the bars - in my example it is set in this line:

    RadChart1.DataManager.ValuesYColumns = new string[] { "Count" };

    If you need to provide your own text labels for Y axis items -- you will have to wire the BeforeLayout event, loop on the axis items and modify their text:
    axisItem.TextBlock.Text = "my text";

    Kind regards,
    Ves
    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