Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
142602 | Feb 12,2019 01:39 AM UTC | Feb 13,2019 11:45 AM UTC | ASP.NET MVC - EJ 2 | 1 |
![]() |
Tags: Sparkline |
function update() {
setInterval(function () {
Getting instance of chart
var spark1Obj = document.getElementById('spark1').ej2_instances[0],
//...
Assigned data soruce
spark1Obj.dataSource = [{ xval: 'X1', yval: Math.floor(Math.random() * 6) + 1 },
//...]
Refreshed the sparkline using refresh method
spark1Obj.refresh();
//...
}, 3000);
}
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.