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

Chart DataSource reverting to original

2 Answers 110 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 09 May 2012, 03:44 PM
I have code that updates the datasource of a chart and it works fine.  I also have code that changes the chart from a column to bar to line.  That also works, but any time the .refresh() method is called on the chart, it reverts the datasource to the original data source.

Was wondering if this is a bug, or a feature change.

Testing steps:
Change the "Select parking area filter" from 0 to 4.  Notice the chart refreshes with values of 5 (n+1).
Change the "Chart type" from column to bar.  Notice the data source reverts back to original.

The fiddles below are identical except for the kendo.all.min.js included.

2012.1.322 - Broken
http://jsfiddle.net/CdpgZ/3/

2011.3.1129 - Works
http://jsfiddle.net/YbrgL/1/

Thank you

Jon

2 Answers, 1 is accepted

Sort by
0
Jonathan
Top achievements
Rank 1
answered on 11 May 2012, 07:49 PM
Any love?

Jon
0
Iliana Dyankova
Telerik team
answered on 14 May 2012, 01:38 PM
Hi Jon,

Thank you for pointing our attention to this issue. Indeed, the problem occurs because in the current version of Kendo UI the Chart internally uses DataSource read() method for refresh. Such approach will undergo changes for our next official release, but I am afraid currently I can not offer a suitable workaround for your scenario. Please excuse us for the inconvenience.

Regards,

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