Highcharts.stockChart('container', {

    title: {
        text: 'Relative X value'
    },

    subtitle: {
        text: 'X values are relative to pointStart and pointInterval'
    },

    series: [{
        data: [
            [1, 29.9],
            [2, 71.5],
            [5, 106.4],
            [6, 129.2],
            [7, 144.0],
            [8, 176.0],
            [9, 135.6],
            [12, 48.5],
            [13, 216.4],
            [14, 194.1],
            [15, 95.6],
            [16, 54.4]
        ],
        gapSize: 1,
        pointStart: '2020-01-01',
        pointInterval: 36e5, // one hour
        relativeXValue: true
    }]
});
