HighCharts删除堆栈总数 [英] HighCharts remove stack totals
本文介绍了HighCharts删除堆栈总数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在创建一个堆叠条形图,就像这一个。请注意,每个堆栈的总数都显示在顶部,我该如何禁用/隐藏它?
I'm creating a stacked bar chart just like this one. Notice that the total of each stack is displayed at the top, how can I disable/hide this?
推荐答案
yAxis: {
min: 0,
title: {
text: 'Total fruit consumption'
},
stackLabels: {
enabled: false,
style: {
fontWeight: 'bold',
color: (Highcharts.theme && Highcharts.theme.textColor) || 'gray'
}
}
},
你需要如上例所示,将stackLabels设置为false
you need to turn the stackLabels to false like in the example above
stackLabels: {
enabled: true,
这篇关于HighCharts删除堆栈总数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文