Set x-axis range in highcharts

highcharts

Solution

Min and max should be timestamps, not date objects.

Proper code:

    xAxis: {
        min: new Date('2000/10/22').getTime(),
        max: new Date('2010/10/22').getTime(),
    },

http://jsfiddle.net/34CZK/3/

Problem

I have multiple time series that do not have the same starting/ending points. I want to fix a starting point and a ending point in x-axis, I tried something like: ``` xAxis: { min: new Date('2000/10/22'), max: new Date('2010/10/22'), }, ``` jsfiddle link But it does not work. Btw, the document on highcharts website has a wrong link for `min` in xAis.

Original source

Related problems