预期:[1]: https://i.stack.imgur.com/pXRj8.png
我想做一个像图片一样的堆叠栏,可以吗?如果是,请给我解决方案。由于
使用stackLabels:https://api.highcharts.com/highcharts/yAxis.stackLabelshttps://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, null, ',');
},
style: {
color: 'white',
fontWeight: 'normal'
}
},
labels: {
style: {
color: 'white'
},
formatter: function() {
return Highcharts.numberFormat(this.value, null, null, ',');
}
}
},