【发布时间】:2022-01-18 10:04:30
【问题描述】:
`https://codepen.io/martynakil/pen/BawpPJv`
如何给栏添加垂直标题?如何将图例中的符号变成矩形?
我需要:
- 垂直标题
- 符号反应角
- 将负值与正值分开的垂直线
谢谢!
这里截图 [截图] enter image description here
【问题讨论】:
标签: highcharts bar-chart titlebar legend-properties
`https://codepen.io/martynakil/pen/BawpPJv`
如何给栏添加垂直标题?如何将图例中的符号变成矩形?
我需要:
谢谢!
这里截图 [截图] enter image description here
【问题讨论】:
标签: highcharts bar-chart titlebar legend-properties
series: [{
dataLabels: {
enabled: true,
verticalAlign: 'bottom',
align: 'left',
inside: true,
rotation: -90,
x: -20,
y: -10
},
name: "John",
data: [{
dataLabels: {
format: 'Apples'
},
y: 5
}, ...]
},
...
]
yAxis: {
...,
plotLines: [{
value: 0,
zIndex: 4
}]
}
现场演示: http://jsfiddle.net/BlackLabel/hfamwetg/
API 参考: https://api.highcharts.com/highcharts/series.column.dataLabels
【讨论】: