Home › Forums › Chart Support › Auto refresh Graph with some particular time duration › Reply To: Auto refresh Graph with some particular time duration
Hi Madam, Thanks for Your Replay.. I tried one code but it’s draw same chart over by over please provide me a sample code which could be working properly i am using ASP.MVC and SQL
This is my code:
var x = i; var updateInterval = 1000; var updateChart = function () { for(var y=0; y < result.length; y++){ dataPoints.push({label:result[y].Head, y:result[y].ForgingStock}); } x=y; chart.render(); }; setInterval(function () { updateChart() }, updateInterval);
Thanks & regards Mahesh.