Highcharts Demo

author(s): Torstein Hønsi

by anikettiwari

HTML

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

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

JavaScript

Highcharts.chart('container', {
  chart: {
    type: 'column',
    borderWidth: 1,
    plotBorderWidth: 1,
   // margin: [0, 0, 0, 0]
  },
  title: {
    text: ''
  },
  legend: {
    enabled: false
  },
  credits: {
    enabled: false
  },
  xAxis: {
    lineWidth: 0,
    gridLineWidth: 0,
    tickWidth: 0,
    labels: {
      enabled: false
    }
  },
  yAxis: {
    lineWidth: 0,
    gridLineWidth: 0,
    tickWidth: 0,
    labels: {
      enabled: false
    },
    title: {
      text: ''
    }
  },
  plotOptions: {
    series: {
      stacking: 'percent'
    }
  },
  series: [{
    name: 'John',
    data: [5, 3, 4, 7, 2]
  }, {
    name: 'Jane',
    data: [2, 2, 3, 2, 1]
  }, {
    name: 'Joe',
    data: [3, 4, 4, 2, 5]
  }]
});