Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- chart = new Highcharts.Chart({
- chart: {
- renderTo: 'container',
- type: 'spline',
- marginRight: 10,
- events: {
- load: function() {
- // set up the updating of the chart each second
- var series = this.series[0];
- setInterval(function() {
- var x = (new Date()).getTime(), // current time
- $.get("../api/?action=getStat&stat=queueSize&apikey=<?php echo $apikey; ?>&userid=<?php echo $userid; ?>",function(data){
- alert("FDSDFS");
- },"text");
- y = 15;
- series.addPoint([x, y], true, true);
- }, 1000);
- }
- }
- },
Add Comment
Please, Sign In to add comment