score:1

Accepted answer

You can set redraw parameter in addPoint method to false and call chart.redraw() at longer intervals:

chart: {
    ...,
    events: {
        load: function() {
            // set up the updating of the chart each second
            var series = this.series[0],
                chart = this;

            setInterval(function() {
                var x = (new Date()).getTime(), // current time
                    y = Math.random();
                series.addPoint([x, y], false, true);
            }, 10);

            setInterval(function() {
                chart.redraw();
            }, 500);
        }
    }
}

Live demo: https://jsfiddle.net/BlackLabel/s3gh6q5j/

API Reference:

https://api.highcharts.com/class-reference/Highcharts.Series#addPoint

https://api.highcharts.com/class-reference/Highcharts.Chart#redraw


Related Query

More Query from same tag