score:2

Accepted answer

you can use highcharts fixed placement columns that is inverted. check the demo posted below.

html:

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

js:

highcharts.chart('container', {
  chart: {
    type: 'column',
    inverted: true
  },
  xaxis: {
    categories: [
      'seattle hq',
      'san francisco',
      'tokyo'
    ]
  },
  yaxis: [{
    min: 0,
    title: {
      text: 'employees'
    }
  }, {
    title: {
      text: 'profit (millions)'
    },
    opposite: true
  }],
  legend: {
    shadow: false
  },
  tooltip: {
    shared: true
  },
  plotoptions: {
    column: {
      grouping: false,
      shadow: false,
      borderwidth: 0
    }
  },
  series: [{
    name: 'employees',
    color: 'rgba(165,170,217,1)',
    data: [150, 73, 20],
    pointpadding: 0,
    grouppadding: 0.15,
    pointplacement: 0
  }, {
    name: 'employees optimized',
    color: 'rgba(126,86,134,.9)',
    data: [140, 90, 40],
    pointpadding: 0.2,
    pointplacement: 0
  }]
});

demo: https://jsfiddle.net/blacklabel/g0b9uev5/1/


Related Query

More Query from same tag