score:1

Accepted answer

Datagrouping

Use condition to set the flag enabled in plotOptions.series.dataGrouping as

plotOptions: {
        series: {
        dataGrouping: {
            enabled: data.length > 1000 ? true : false
        }
      }
    },

Range 1000 last points

Extract the last point as max and last point - 1000 as min, then call setExtremes()

var seriesData = data,
    lenSeries = seriesData.length - 1,
    max = seriesData[lenSeries][0],
    min = seriesData[lenSeries - 1000][0];

chart.xAxis[0].setExtremes(min, max);

http://jsfiddle.net/BlackLabel/bwmcdg6w/


Related Query

More Query from same tag