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

How do I update a chart that has the data in series and not datasource?

1 Answer 1316 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Clyde
Top achievements
Rank 1
Clyde asked on 24 May 2016, 09:58 PM
I have a chart with multiple series and data set in the series.  How do I refresh the chart so that new data appears?  With the datasource the fix is dataSource.read(); dataSource.refresh(); but this does not work with series.  

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 26 May 2016, 02:23 PM
Hi Clyde,

You can manipulate the series.data arrays (and the categoryAxis.categories array if necessary), and then call the refresh() method of the Kendo UI Chart to visualize the new options. You can check out a sample implementation in the following dojo:

http://dojo.telerik.com/ojIxO/3

I hope this helps.

Regards,
Dimiter Topalov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Charts
Asked by
Clyde
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or