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

Version 2012.1.322 not updating chart

2 Answers 112 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Luis Carlos
Top achievements
Rank 2
Luis Carlos asked on 29 Mar 2012, 08:31 PM
Hi,

I'm having troubles trying to update a chart: http://jsfiddle.net/luisk/aHFwc/

I'm using chart.dataSource.data(prb);

As you can see in the example, the title is changing but the data source is not.

Thanks!

2 Answers, 1 is accepted

Sort by
0
Accepted
Alexander Valchev
Telerik team
answered on 30 Mar 2012, 11:27 AM
Hi Luis,

I have already answered your support ticket on the same subject. For convenience I am pasting my reply here as well.

There data is not changed because the refresh method is using the original defined array dsource. Actually there is no need to refresh manually - when the dataSource is changed, the chart will refresh automatically.

Another problem are the names of fields in the prb object. Note that originally the name of the series are "correct " and "incorrect", so you have to use either the same names or change the series properties.

For convenience I have modified your example to show the suggested solution in action.
I hope this information will help you to solve the problem.

Regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Luis Carlos
Top achievements
Rank 2
answered on 30 Mar 2012, 03:07 PM
Wow, thanks so much, don't know how I missed that!

Thanks again for the amazing support and the amazing product!
Tags
Charts
Asked by
Luis Carlos
Top achievements
Rank 2
Answers by
Alexander Valchev
Telerik team
Luis Carlos
Top achievements
Rank 2
Share this question
or