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

Stacked and grouped bars remote data

1 Answer 101 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Panda
Top achievements
Rank 1
Panda asked on 11 Nov 2014, 10:01 AM
hi,
we are using kendo chart HTML5 version, currently our project requires a stacked grouped charts
the requirement is pretty similar to those in the demos
however i can't seem to find how to make the chart like in the demos (http://demos.telerik.com/kendo-ui/bar-charts/grouped-stacked-bar)
using remote data.
In our projects there 2 groups or whatever it is called, which is AcquiredValue and CurrentValue(in the demos is Male and Female)
we have 4 range which is for example AssetTypeA,AssetTypeB,AssetTypeC, and AssetTypeD (in the demos its the age part, 0-19,20-39,40-64,etc)
all are grouped by year (similar to those in demos, which is 1970, 1975, 1980 etc)
all data are required to be returned from the server

can you please help guide us what kind of server response in JSON format that we need to receive from the server
and the settings in the kendo chart html5 to achieve this?

thank you very much

1 Answer, 1 is accepted

Sort by
0
Venkat
Top achievements
Rank 1
answered on 11 Nov 2014, 01:30 PM
Hi Panda,

Just now I was able to get the Stacked Chart to make it work. See my thread http://www.telerik.com/forums/stacked-report-is-not-generating

To get the stacked to work, we need to Convert Json to IList<T> as the Chart will be expecting the data in List of Models. So, if you pass the IList<T> model it should work for you.

Regards!
Tags
Charts
Asked by
Panda
Top achievements
Rank 1
Answers by
Venkat
Top achievements
Rank 1
Share this question
or