Highcharts Demo

author(s): Torstein Hønsi

by koh_edwin

HTML

<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/broken-axis.js"></script>

<div id="container"></div>

JavaScript

Highcharts.chart('container', {
  chart: {
    type: 'column'
  },
  title: {
    text: ''
  },
  credits: {
    enabled: false
  },
  legend: {
    enabled: false
  },
  xAxis: {
    type: 'category',
    tickmarkPlacement: 'on',
    categories: [
      'Q1 1996', 'Q1 1997', 'Q1 1998', 'Q1 1999', 'Q1 2000', 'Q1 2001',
      'Q1 2002', 'Q1 2003', 'Q1 2004', 'Q1 2005', 'Q1 2006', 'Q1 2007',
      'Q1 2008', 'Q1 2009', 'Q1 2010', 'Q1 2011', 'Q1 2012', 'Q1 2013',
      'Q1 2014', 'Q1 2015', 'Q1 2016', 'Q1 2017', 'Q1 2018', 'Q1 2019'
    ],
    breaks: [{
      from: 0,
      to: 15,
      breakSize: 1
    }]
  },
  yAxis: {
    title: {
      text: ''
    }
  },
  plotOptions: {
    series: {
      pointPadding: 0,
      groupPadding: 0,
      borderWidth: 0.5
    }
  },
  series: [{
    data: [{
      x: 0,
      y: 450
    }, {
      x: 21,
      y: 190
    }, {
      x: 22,
      y: 420
    }, {
      x: 23,
      y: 500
    }]
  }]
});