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) {
console.log(e.data);
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() ?