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

Monthly Sales Data In Stacked Bar Chart

3 Answers 165 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Hatton Point
Top achievements
Rank 1
Hatton Point asked on 20 Jan 2013, 03:22 AM
Hi. I'm attempting to bind the attached data example to a Stacked Bar Chart and not having much luck using the example here:

http://demos.kendoui.com/dataviz/bar-charts/grouped-stacked-bar.html

The goal is to have Months on the X-axis and Product totals per month, each product stacked on the Y-axis. The example provided only show configuration for building using static data is a particular format. Is it possible to use the data sample attached without reorganizing?

Thanks.

3 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 24 Jan 2013, 11:41 AM
Hello,

 
If I understand you correctly, you want to have the products for each month stacked on top of each other. To achieve this, you could group the data by product name and then generate new series for each unique product. The Stack configuration must be set to true. For your convenience I've prepared a small sample project, showing the described approach.

I hope this will solve your problem.

Greetings,
Dimiter Madjarov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Hatton Point
Top achievements
Rank 1
answered on 06 Feb 2013, 08:40 PM
Thanks for the reply. However, your sample data set does not reflect the one I provided. I think the answer is the data needs to be in a different format. Not already grouped by Month. Once i have the data formatted as your example is, I will try it again.
0
Dimiter Madjarov
Telerik team
answered on 08 Feb 2013, 03:27 PM
Hello,

Thanks for posting! If you need to adapt the chart to a slightly different data, feel free to modify the sample project to fit your needs.

Please keep me updated with your progress.

 

Kind regards,
Dimiter Madjarov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Chart
Asked by
Hatton Point
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Hatton Point
Top achievements
Rank 1
Share this question
or