如何移除Highcharts热力图系列提示框?无enabled属性可用
Got it, let's fix this Highcharts heatmap tooltip issue for you! Even though the series.heatmap.tooltip config doesn't have an enabled property, there are two straightforward ways to disable the tooltips:
1. Disable Tooltips Globally for the Entire Chart
If you don't need any tooltips anywhere on the chart, you can set enabled: false directly in the root tooltip configuration:
Highcharts.chart('container', { tooltip: { enabled: false // Turns off all tooltips for the chart }, series: [{ type: 'heatmap', data: [...] // Your heatmap data }] });
2. Disable Tooltips Only for the Heatmap Series
If you want to keep tooltips for other series but disable them just for the heatmap, use the formatter function in the series-specific tooltip config and return false:
Highcharts.chart('container', { series: [{ type: 'heatmap', data: [...], // Your heatmap data tooltip: { formatter: function() { return false; // Prevents this series from showing tooltips } } }, { type: 'line', data: [...] // Tooltips will still work for this series }] });
This works because Highcharts skips rendering the tooltip when the formatter returns false or null—exactly what we need to target just the heatmap series without affecting other parts of the chart.
内容的提问来源于stack exchange,提问作者TheDaveAbides

