Here's a bit more information with an example of a dynamically generated chart:
var div = $("<div/>");
$(document.body).append(div);
div.kendoChart({
series: [
{ data: [1, 2] }
]
});
Here is a live demo showing that: http://jsbin.com/ixupix/1/editBut how would i go about changing it's datasource as it has now id selector? I could use var div = $("<div id="chart />"); But when i do var c = $("#chart").data("kendoChart") i get undefined.
0
Iliana Dyankova
Telerik team
answered on 09 Mar 2016, 09:51 AM
Hi Ant,
You could use the setOptions method to change the chart series data. Take a look at this dojo which demonstrates a possible implementation.
Regards,
Iliana Nikolova
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!