好的,所以如果你启用了boost模块,放大可以隐藏一些系列。如果系列在缩放范围内没有点,则该线将完全隐藏。即使该系列在缩放范围内没有点,我也希望仍然显示该线。
它的工作方式,我希望它没有boost模块,但我需要boost启用。
你知道我怎么解决这个问题吗?在小提琴上,放大到3-5月,并观看2015-2015系列线消失。
https://jsfiddle.net/b5cvwhyx/1/
Highcharts.chart('container', {
chart: {
type: 'line',
zoomType: 'x'
},发布于 2019-01-22 21:51:29
这个问题看起来像是个bug,所以我在Highcharts github上报告了这个问题:https://github.com/highcharts/highcharts/issues/9962
要解决此问题,您可以添加更多数据点或在缩放图表时禁用提升:
xAxis: {
events: {
setExtremes: function(e) {
if (typeof e.min == 'undefined' && typeof e.max == 'undefined') {
this.chart.update({
plotOptions: {
series: {
boostThreshold: 1
}
}
});
} else {
this.chart.update({
plotOptions: {
series: {
boostThreshold: 0
}
}
});
}
}
},
...
},https://stackoverflow.com/questions/54297378
复制相似问题