Hi,
I managed to combine something and have chart bound to same websocket ds as grid in your demo.
Read method gets data and draws pie chart, but when I update data via grid, nothing happens.
After some investigation it seems, pushUpdate in transport causes error causing chart not to update.
on this part:
//Check what the push type is and invoke the corresponding callback.
if (result.type == "push-update") {
options.pushUpdate(result);
}
This is error I get in demo:
kendo.all.js:7092 Uncaught TypeError: Cannot read property 'call' of undefined
at Object.<anonymous> (VM30647 kendo.all.min.js:28)
at Function.Deferred (VM30646 jquery.min.js:2)
at init._promise (VM30647 kendo.all.min.js:28)
at init._send (VM30647 kendo.all.min.js:28)
at init.sync (VM30647 kendo.all.min.js:28)
at init._change (VM30647 kendo.all.min.js:28)
at init.d (VM30646 jquery.min.js:2)
at init.trigger (VM30647 kendo.all.min.js:25)
at o.<anonymous> (VM30647 kendo.all.min.js:27)
at o.trigger (VM30647 kendo.all.min.js:25)
Is there any different approach I can/should take so I can have real time updates on the chart?
Thank you and regards,
Vedad