Highcharts Stacked bar cannot show total Volume

81 Views Asked by At

Highchart expected: [1]: https://i.stack.imgur.com/pXRj8.png

I want to make a Stacked bar like the picture, is it possible? If yes, please give me the solution. Thanks

2

There are 2 best solutions below

0
madepiet On
0
Greg Nguyen On

Here is a response for the problem:https://jsfiddle.net/6pcm4znk/3/

yAxis: {
 gridLineWidth: 0,
 title: {
  text: null
 },
 stackLabels: {
  enabled: true,
  formatter: function() {
    return Highcharts.numberFormat(this.total, null, null, ',');
  },
  style: {
    color: 'white',
    fontWeight: 'normal'
  }
 },
 labels: {
  style: {
    color: 'white'
   },
  formatter: function() {
    return Highcharts.numberFormat(this.value, null, null, ',');
   }
  }
 },