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
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.
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
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
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
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/.