Highcharts Stacked bar 无法显示总成交量

问题描述

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

我想做一个图片一样的Stacked bar,可以吗?如果是,请给我解决方案。谢谢

解决方法

使用堆栈标签: https://api.highcharts.com/highcharts/yAxis.stackLabels https://jsfiddle.net/BlackLabel/kcusx40g/

yAxis: {
    stackLabels: {
      enabled: true
    }
}
,

以下是对问题的回应:https://jsfiddle.net/6pcm4znk/3/

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