高图中注释的响应能力
Responsiveness of the annotations in highcharts
without full screen
on full screen
在highcharts的StockChart中,每当我使用Measure(X,Y,XY)标注并切换到全屏时,标注没有重排或与比例尺不一致。
有办法纠正吗?
该问题是 Highcharts 中的错误,已在此处报告: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
without full screen
on full screen
在highcharts的StockChart中,每当我使用Measure(X,Y,XY)标注并切换到全屏时,标注没有重排或与比例尺不一致。
有办法纠正吗?
该问题是 Highcharts 中的错误,已在此处报告: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