Highcharts Demo

author(s): Torstein Hønsi

by totszwai

HTML

<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="https://code.highcharts.com/modules/export-data.js"></script>

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

JavaScript

Highcharts.chart('container', {
  chart: {
    type: 'bar'
  },
  xAxis: {
  },
  yAxis: {
    reversed: true
  },
  plotOptions: {
    bar: {
      dataLabels: {
        enabled: true
      }
    }
  },
  series: [{
    data: [{
      name: '1',
      y: -40,
      colorIndex: 1

    }, {
      name: '2',
      y: -80,
      colorIndex: 1

    }, {
      name: '3',
      y: -88,
      colorIndex: 2

    }, {
      name: '4',
      y: -99,
      colorIndex: 1

    }]
  }]
});