Home forums Using CanvasJS Help with Dynamic chart, please !!! Reply To: Help with Dynamic chart, please !!!



Looks like I’m misunderstanding somewhere…

For example : My data receive from Event Source :

if (!!window.EventSource) {
var source = new EventSource(‘http://localhost:49999/api/chart/’);
source.addEventListener(‘message’, function (e) {
yVal = parseInt(e.data, 10);
}, false);

Here you can see I set yVal variable to receive e.data

How can canvasjs dynamic chart update this yVal data without setInterval() ?