我有一张美国 map ,其中包含通过 JSON 填充的州深入分析。如何将 colorAxis 的最大:值设置为特定钻取图中的项目总数。
现在 max: 尚未设置,我的 colorAxis 从 0 开始并上升到某个随机数。
最佳答案
您可以在 colorAxis 上设置最大值
colorAxis: {
min: 0,
max:50
},
或使用tickPositioner并根据需要进行计算。
colorAxis: {
min: 0,
tickPositioner:function(){
console.log(this);
}
},
关于javascript - 如何找到最大: value of colorAxis for highMaps drilldown maps,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29659903/