Highcharts.chart('container', {
    title: {
        text: 'Sample of a simple break'
    },
    subtitle: {
        text: 'Line should be interrupted between 5 and 10'
    },
    xAxis: {
        tickInterval: 1,
        breaks: [{
            from: 5,
            to: 10,
            breakSize: 1
        }]
    },
    series: [{
        gapSize: 1,
        data: (function () {
            const data = [];
            for (let i = 0; i < 20; i = i + 1) {
                data.push(i);
            }
            return data;
        }())
    }]
});