集群缩放错误: 属性x:预期长度,“ NaNNaNNaNNaN”

问题描述 投票:0回答:1

当使用散布系列中的群集,并且为每个点标记使用符号时,单击群集并进行缩放后,在chrome控制台中出现此错误

群集缩放错误:属性x:预期长度,“ NaNNaNNaNNaN”。

这里是堆栈跟踪

highcharts.js:68 Error: <image> attribute x: Expected length, "NaN".
_defaultSetter  @   highcharts.js:68
(anonymous) @   highcharts.js:45
A   @   highcharts.js:14
attr    @   highcharts.js:45
animate @   highcharts.js:40
Scatter.animateClusterPoint @   marker-clusters.src.js:676
(anonymous) @   marker-clusters.src.js:1708
(anonymous) @   marker-clusters.src.js:1707
(anonymous) @   marker-clusters.src.js:1693
(anonymous) @   highcharts.js:29
c.fireEvent @   highcharts.js:29
redraw  @   highcharts.js:282
zoom
highcharts
1个回答
0
投票
找到了解决方法-您可以按以下步骤禁用系列群集动画:

{ type: 'scatter', cluster: { animation: false, }, data: ... };

© www.soinside.com 2019 - 2024. All rights reserved.