在高图集的StockChart中,每当我使用度量衡(X,Y,XY)注释并切换到全屏时,注释就不会再流,或者与标度不一致。
有办法纠正吗?
发布于 2019-06-26 13:30:01
这个问题是高级图表中的一个错误,报告如下:https://github.com/highcharts/highcharts/issues/11174
作为解决办法,您可以在redraw事件中更新度量值注释:
chart: {
events: {
redraw: function() {
this.annotations.forEach(function(annotation) {
if (annotation.options.type === 'measure') {
annotation.update();
}
});
}
}
}现场演示: https://jsfiddle.net/BlackLabel/xc6eo0f7/
API参考: https://api.highcharts.com/highcharts/chart.events.redraw
https://stackoverflow.com/questions/56731353
复制相似问题