【发布时间】:2021-04-20 18:31:12
【问题描述】:
我正在努力实现,
- 悬停在柱形范围图上时移除阴影
- 点击highchart 中的图例时,图表未重置。请找到链接
Highcharts.chart('container', {
chart: {
type: 'columnrange',
inverted: true,
},
colors: [
"#105060",
"#1E8199",
"#DB9500",
"#D03D16",
"#8200A3",
"#A60040",
"#3EBEDE",
"#FCAC6B",
"#7FE9CE",
"#FD6FA5",
"#89E3F9",
"#E477FF",
],
yAxis: {
visible: false
},
xAxis: {
categories: xAxisCats,
},
plotOptions: {
series: {
stacking: 'normal',
grouping: false,
showInLegend: true,
groupPadding: 0,
pointPadding: 0,
dataLabels: {
enabled: true,
inside: true,
align: 'center',
formatter: function() {
return this.point.high - this.point.low ? this.point.high - this.point.low : '';
}
}
}
},
tooltip: {
shared: false,
formatter: function() {
const category = this.key + ' : ',
value = this.point.high - this.point.low ? this.point.high - this.point.low : '';
return category + value
// return this.point.high - this.point.low ? this.point.high - this.point.low : '';
}
}...
【问题讨论】:
标签: javascript highcharts multiple-columns