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();
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With