score:2

Accepted answer

If I'm following you, you want to shift off the start of the series, but leave the xAxis alone?

You can just set an xAxis min:

    xAxis:{
        min: 0
    }

See example.

EDITS

In response to your comment. I think the easiest thing to do would be to shift the data yourself and then use setData to redraw the series.

    newData = [];
    var seriesData = chart.series[0].data;
    // shift the data
    for (var i = 0; i < (seriesData.length - 1); i++){
        newData.push({x: seriesData[i].x, y: seriesData[i+1].y});
    }
    // new point for last
   newData.push({x: seriesData[seriesData.length - 1].x, 
                 y: Math.random() * 100});
   chart.series[0].setData(newData, true);

Updated fiddle.


Related Query

More Query from same tag