Highcharts Demo

by adisakthimthong

HTML

<script src="https://code.highcharts.com/highcharts.js"></script>

<div id="container" style="height: 400px; max-width: 800px; margin: 0 auto"></div>

JavaScript

Highcharts.chart('container', {
  title: {
    text: 'Zone'
  },
  xAxis: {
    categories: ['1998', '1999', '2000', '2010', '2011', '2012', '2013', '2014', '2015', '2016', '2017', '2018']
  },
  series: [{
    data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4],
    zoneAxis: 'x',
    zones: [{
      value: 8, //indexOf
      color: '#F1948A'
    }, {
      dashStyle: 'dot',
      color: '#52BE80'
    }]
  }]
});