我正在使用大量示例创建 HighCharts 热图。当我尝试创建包含 32 x 32 样本的图时,我创建了许多虚假的空 y 类别。
31 x 32 热图没有问题:http://jsfiddle.net/tallphil/8xattd5s/
32 x 32 热图中断:http://jsfiddle.net/tallphil/fr43pqmb/
你知道这里会发生什么吗?我怀疑 HighCharts 在达到神奇的 1024 样本数时正在做一些奇怪的事情。
提前非常感谢,
菲尔
ps。 Stack Overflow 坚持要求我在此处粘贴一些代码,因为我使用了 jsfiddle 链接,因此这是没有数据的绘图代码:
Highcharts.chart('container', {
chart: { type: 'heatmap' },
title: { text: 'Heatmap Test' },
colorAxis: {
min: 0,
minColor: '#FFFFFF',
maxColor: Highcharts.getOptions().colors[0]
},
series: [{
name: 'Sales per employee',
borderWidth: 1,
data: DATA_HERE
}]
});
最佳答案
这是一个 turboThreshold属性(property)。您应该通过将其设置为 0 来禁用它。
series: [{
turboThreshold: 0,
关于javascript - HighCharts 热图 : Plotting error with >= 1024 samples,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43848379/