0
在下面我的代码有一个pointFormatterfor提示。我想要做的是,为了某些点,完全隐藏工具提示。在这些情况下,我尝试过返回null或false,但仍然出现空的工具提示。使用pointFormatter时可以完全隐藏工具提示吗?我已经看到了与其他格式化是posisblet返回null或假,但这似乎并没有在这里如此。使用pointFormatter可以完全隐藏工具提示吗?
tooltip: {
useHTML: true,
borderWidth: 0,
backgroundColor: "rgba(37,37,37,0.95)",
style: {
padding: 10
},
headerFormat: "",
pointFormatter: function() {
if(this.hrr_num === 16){
return null;
}
return self.getToolTip(parseInt(this.hrr_num));
},
followPointer: false,
shadow: false,
shape: "square",
hideDelay: 0
}