如何删除“ 0%”在图中间?
我尝试在plotOptions中使用“堆叠”和“样式”来删除图表中间的0%。请参阅我的“codepen”示例来了解我的问题并帮助我解决。
plotOptions: {
bar: {
stackings: 'normal',
dataLabels: {
enabled: true,
format: '{y} %',
},
marker: {
enabled: false,
},
},
series: {
grouping: false,
},
},
I tried "stacking" and "styles" in plotOptions to remove 0% in the middle of my graph. please see my "codepen" example to understand my problem and help me out.
plotOptions: {
bar: {
stackings: 'normal',
dataLabels: {
enabled: true,
format: '{y} %',
},
marker: {
enabled: false,
},
},
series: {
grouping: false,
},
},
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用
formatter
函数并仅显示值不为 0 的数据标签:现场演示: http://jsfiddle.net/BlackLabel/t98hzdbx/
API 参考: https://api.highcharts.com/highcharts/series.column.dataLabels.formatter< /a>
Use
formatter
function and show data-labels only with different value than 0:Live demo: http://jsfiddle.net/BlackLabel/t98hzdbx/
API Reference: https://api.highcharts.com/highcharts/series.column.dataLabels.formatter