Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is different between refresh method and redraw method in Kendo-UI chart?

I find the kendoui chart has two methods: refresh method and redraw method, what is the difference? I think both of them is to draw the chart again. But if the chart is binding from remote data according to ajax, the request will not fire again.

$("#Chart").data("kendoChart").redraw();
$("#Chart").data("kendoChart").refresh();
like image 640
Lyly Avatar asked Feb 18 '14 19:02

Lyly


1 Answers

redraw will render the chart again using the current data, which can be used when changing the size of the chart, for example. refresh will also rebind the data, so if your data source changed, this will be reflected.

like image 197
Lars Höppner Avatar answered Oct 16 '22 14:10

Lars Höppner