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

Dynamic DataViz series

1 Answer 57 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kelly
Top achievements
Rank 1
Kelly asked on 24 Dec 2013, 04:55 PM
I understand a dynamic number of data series is not currently supported by Kendo but does anybody have an example of something like this being done? 

I'd like to be able to load a chart with a defined number or series but fill out the series using the read function. The problem I end up having is that I do not know the number of series until the user tries to load the page. IE: One use could open a chart using a query that has two series while another could do the same but using a query with 3 series. Since that's the only real differences in the two charts I'd like to use the same view. I know I can do this on the page load but I'd like to use the read function of the dataSource as that seems to give a better user experience. Currently I'm using the MVC helpers but I'm not married to that approach and have no problem building some or all of the chart or it's data with the javaScript functions.

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 26 Dec 2013, 06:57 AM
Hello Paul,

Indeed you cannot achieve this when using the MVC wrappers, however if you switch back to use the JavaScript version, you can get first get the data with $.ajax and then create the chart.series array with two or three elements and it and pass it when initializing the chart like shown here.

Kind Regards,
Petur Subev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
Kelly
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or