highcharts - Highchart堆叠条yAxis堆叠标签问题
问题描述
这是 js fiddle highchart 堆叠条堆叠标签问题
Highcharts.chart('container', {
chart: {
type: 'bar'
},
title: {
text: 'Stacked bar chart'
},
xAxis: {
categories: ['Apples', 'Oranges', 'Pears', 'Grapes', 'Bananas']
},
yAxis: {
min: 0,
title: {
text: 'Total fruit consumption'
},
stackLabels: {
enabled: true,
align: 'right',
style: {
color: '#838383',
fontSize:"12px",
fontWeight:"normal",
width:'60px'
}
}
},
legend: {
reversed: true
},
plotOptions: {
series: {
stacking: 'normal'
}
},
series: [{
name: 'John',
data: [5555555555555, 3, 4, 7, 2]
}, {
name: 'Jane',
data: [2, 2, 3, 2, 1]
}, {
name: 'Joe',
data: [3, 4, 4, 2, 5]
}]
});
无论如何设置条的最大长度以使yAxis标签不会隐藏?或者我怎样才能显示完整的标签?如果它的值很大,目前它会隐藏标签的某些部分。
解决方案
推荐阅读
- bash - ~/.bashrc 上的问题,写入的文件 PATH 不正确
- css - 如何在基于 css 模块的反应应用程序中使用已经严格的 css 常规工作表?
- google-cloud-build - 在 docker build 中注入服务帐户 json
- java - Java Swing 在等待方法时在 actionPerformed 函数中更改 UI 两次
- postgresql - 在没有联结表的情况下查询多对多关系
- linux - 列出 Linux 中名称中不包含数字的文件
- python - AttributeError:“NoneType”对象在带有 tf.keras.models.load_model 的 Chaquopy 中没有属性“predict”
- javascript - Onclick 类切换未触发
- aframe - AFrame - 设置相机馈送的大小
- javascript - 如何创建一个将其值作为其类型的数组?