score:2

events: {
    load: function() {
        // set up the updating of the chart each second
        var series = this.series[0];
        setInterval(function() {
            $.getJSON('db.php', function(data) {
                 series.setData(data);
            });
        }, 1000);
    }
},

1st, series is an array, so you'll want series[0]. 2nd, you need to use setData to change the series data after the chart is drawn (http://api.highcharts.com/highcharts#Series.setData())

It's not clear from your code if you're already doing it, but you will need to set the original series : [{data:[...]}]


Related Articles