combining bar and stacked bar

Thread is closed for posting
8 posts, 0 answers
  1. Ashley
    Ashley avatar
    22 posts
    Member since:
    Jul 2010

    Posted 26 Aug 2010 Link to this post

    Hi all,

    Is it possible to create a bar chart that has groups by a group of series but also stacks with another. For example a series for a breakdown of types of feedback but then a stacked bar series for how many of that type are over due and how many arent.

    regards,

    Ash
  2. Velin
    Admin
    Velin avatar
    391 posts

    Posted 31 Aug 2010 Link to this post

    Hi Ashley,

    Could you, please, provide an image of what exactly you need to achieve? Thanks.

    All the best,
    Ryan
    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. Ashley
    Ashley avatar
    22 posts
    Member since:
    Jul 2010

    Posted 13 Sep 2010 Link to this post

    Hi Ryan,

    Very Sorry about the late reply I've had to go back to the client and get a picture of what he wants attached is the jpeg of the graph we want to acheive. Thankyou for your time.

    Regards,

    Ash
  4. Velin
    Admin
    Velin avatar
    391 posts

    Posted 16 Sep 2010 Link to this post

    Hello Ashley,

    You need horizontal stacked bar chart with two stacked series. Here is how you can set up one:
    protected void Page_Load(object sender, EventArgs e)
    {
        RadChart1.SeriesOrientation = ChartSeriesOrientation.Horizontal;
     
        ChartSeries s1 = new ChartSeries("1", ChartSeriesType.StackedBar);
        s1.DataYColumn = "Y";
     
        ChartSeries s2 = new ChartSeries("2", ChartSeriesType.StackedBar);
        s2.DataYColumn = "Y2";
     
        RadChart1.Series.Add(s1);
        RadChart1.Series.Add(s2);
     
        RadChart1.DataSource = A.Fill();
        RadChart1.DataBind();
    }
     
     
    public class A
    {
        public int Y { get; set; }
        public int Y1 { get; set; }
        public string L { get; set; }
     
        public static IEnumerable<A> Fill()
        {
            for (int i = 0; i < 5; i++)
            {
                yield return new A() { Y = i * 10, Y1 = i };
            }
        }
    }

    Hope this will help.

    Kind regards,
    Ryan
    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. Ashley
    Ashley avatar
    22 posts
    Member since:
    Jul 2010

    Posted 17 Sep 2010 Link to this post

    Hi Ryan,

    from looking at your code extract I can only see the stacked gropuping been created, if you look at the jpeg i also need to create grouping at the axis aswell, could you please try and look into it and get back to me how to achieve this?

    regards,

    Ash
  6. Velin
    Admin
    Velin avatar
    391 posts

    Posted 22 Sep 2010 Link to this post

    Hi Ashley,

    Unfortunately, grouping at the axis level is not supported by RadChart for ASP.NET. You could have a look at our RadChart for Silverlight control where such functionality is supported.

    Please, accept our apologies for this inconvenience.

    Kind regards,
    Ryan
    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
  7. Ashley
    Ashley avatar
    22 posts
    Member since:
    Jul 2010

    Posted 28 Sep 2010 Link to this post

    Hi Ryan,

    Is there any way of getting this feature implemented? I think in the long run it would benefit the RadChart control.

    Kind Regards,

    Ash
  8. Velin
    Admin
    Velin avatar
    391 posts

    Posted 01 Oct 2010 Link to this post

    Hi Ashley,

    Thank you for this proposition.

    Unfortunately, our main focus is the RadChart for Silverlight control and we are not able to commit a specific time frame for its implementation.

    All the best,
    Ryan
    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