score:2

Accepted answer

certainly you can

setinterval(function () {
    var point = chart.series[0].points[0],
        newval,
        inc = 0;

    $.get('squaking', function (data) {
        newval = point.y + data.inc;
        if (newval < 0 || newval > 20) {
            newval = point.y - data.inc;
        }

        point.update(newval);
    });
}, 3000);

i'm assuming here that "squaking" is a server side function that returns a json result containing a value for inc. once the data is returned, the chart is then updated.


Related Query

More Query from same tag