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

Multiple stacked bar series

5 Answers 391 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Robbie
Top achievements
Rank 1
Robbie asked on 27 Mar 2014, 09:23 AM
Is it possible to create a chart like the attached image? 

The chart i am trying to create currently has a stacked bar for enquiries and orders for each month of  a year, i want to add another year to this chart to compare so would need another stacked bar for each month in the new year.

Thanks

5 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 01 Apr 2014, 06:55 AM
Hi Robbie,

Thank you for writing.

To achieve the desired layout first you should set the series CombineMode property to Stack. Then you can use the StackGroupKey property to control how the series are stacked. For example when you have four series you can combine them like this:
barSeries.CombineMode = ChartSeriesCombineMode.Stack;
barSeries2.CombineMode = ChartSeriesCombineMode.Stack;
barSeries3.CombineMode = ChartSeriesCombineMode.Stack;
barSeries4.CombineMode = ChartSeriesCombineMode.Stack;
 
barSeries.StackGroupKey = 0;
barSeries2.StackGroupKey = 0;
barSeries3.StackGroupKey = 1;
barSeries4.StackGroupKey = 1;

I hope this information helps. Should you have any other questions, I will be glad to assist you.

Regards,
Dimitar
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
0
Mansi
Top achievements
Rank 1
answered on 12 Sep 2018, 04:39 AM

Hi, 

I am creating a stacked bar chart in server side using RadChartView. Bar charts are not stacked properly as values have null in between.

I am attaching an example of issue of stacked bar charts. Investment series x values  {40,45,50} Income series value { 25,35,40}. Order of  values in x axis is not right. Could you please help me.

Regards,

Mansi

0
Dimitar
Telerik team
answered on 12 Sep 2018, 07:24 AM
Hello Mansi,

The categories in the X-axis are not treated like numbers, they are treated like strings. The categories appear as they are inserted in the series. In your case, you need to sort the data before adding it to the chart. 

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Progress Telerik
Get quickly onboard and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Eng
Top achievements
Rank 1
answered on 21 Oct 2020, 08:00 AM

Hello sir,

I have tried to implement the stacked100 functionality for radchartview using a model of properties, Candidate, Town, Result. I intend to stack the results data per town, that is the sum of results of all candidates is a stack for a town. No proper documentation from telerik.The link below offers no assistance at all

https://docs.telerik.com/devtools/winforms/controls/chart/understanding-radchart-types/stacked-bar-100-charts

Regards,

Silas

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 23 Oct 2020, 01:58 PM
Hello, Silas, 

I would like to note that RadChart is an obsolete control. Feel free to use RadChartView instead: https://docs.telerik.com/devtools/winforms/controls/chartview/overview 

As to the Stack100 mode, please refer to the following help article demonstrating how to setup BarSeries and use the different CombineMode options: https://docs.telerik.com/devtools/winforms/controls/chartview/series-types/bar   

You can also refer to our Demo application >> ChartView >> Chart types >> Bar example. The Demo application is located in the installation folder of the suite.

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
ChartView
Asked by
Robbie
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Mansi
Top achievements
Rank 1
Eng
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or