kindly help me to implement polling in below mentioned code.
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/highcharts-more.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
</head>
<body>
<div id="container" style="min-width: 310px; max-width: 600px; height: 400px; margin: 0 auto">Time series Highchart</div>
<script>
$(document).ready(function() {
var options = {
chart: {
renderTo: 'container',
type: 'spline'
},
series: [{}]
};
setInterval(function(){
$.getJSON('https://www.highcharts.com/samples/data/jsonp.php?filename=usdeur.json&callback=?', function(data) {
options.series[0].data = data;
var chart = new Highcharts.Chart(options);
});
}, 60000);
});
</script>
</body>
</html>
This is the code which is hitting the rest api and giving the data on highchart. I want to implement the code so that it will show the data on highchart after polling for atleast 60 sec.