[英]highcharts solidgauge reverse angle direction
So I have this solidgauge with options:所以我有这个带有选项的solidgauge:
{
pane: {
startAngle: 0,
endAngle: 360,
},
}
But I want to add an option to have the gauge the other way round, so I went for:但我想添加一个选项来让仪表反过来,所以我选择了:
{
pane: {
startAngle: this.inversed ? 360 : 0,
endAngle: this.inversed ? 0 : 360,
}
}
With this.inversed
set to true
, the animation goes well, but unfortunately, at the end I get an error:将
this.inversed
设置为true
,动画运行良好,但不幸的是,最后我得到一个错误:
Error: <rect> attribute height: A negative value is not valid. ("-298.45130209103036")
It feels like a bug because I don't change anything else.感觉就像一个错误,因为我没有更改任何其他内容。
Can someone help me on reversing the angle direction of my solidgauge?有人可以帮我扭转我的solidgauge的角度方向吗?
Cheers干杯
I've reported a bug, which you can track here: https://github.com/highcharts/highcharts/issues/17361我报告了一个错误,您可以在此处跟踪: https ://github.com/highcharts/highcharts/issues/17361
As a temporary solution you can switch to the last working Highcharts version - 9.2.2 or set series.clip
to false
, which solves the problem of disappearing pane.作为临时解决方案,您可以切换到上一个工作的 Highcharts 版本 - 9.2.2 或将
series.clip
设置为false
,这解决了窗格消失的问题。
Demo: https://jsfiddle.net/BlackLabel/o53r01ce/演示: https ://jsfiddle.net/BlackLabel/o53r01ce/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.