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

combining bar and stacked bar

7 Answers 53 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Ashley
Top achievements
Rank 1
Ashley asked on 26 Aug 2010, 02:22 PM
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

7 Answers, 1 is accepted

Sort by
0
Velin
Telerik team
answered on 31 Aug 2010, 05:29 PM
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
0
Ashley
Top achievements
Rank 1
answered on 13 Sep 2010, 11:52 AM
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
0
Velin
Telerik team
answered on 16 Sep 2010, 09:25 AM
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
0
Ashley
Top achievements
Rank 1
answered on 17 Sep 2010, 03:12 PM
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
0
Velin
Telerik team
answered on 22 Sep 2010, 04:25 PM
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
0
Ashley
Top achievements
Rank 1
answered on 28 Sep 2010, 10:23 AM
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
0
Velin
Telerik team
answered on 01 Oct 2010, 07:05 AM
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
Tags
Chart (Obsolete)
Asked by
Ashley
Top achievements
Rank 1
Answers by
Velin
Telerik team
Ashley
Top achievements
Rank 1
Share this question
or