答案 0 :(得分:2)
tooltip.pointFormatter与useHTML一起仍然期望一个字符串作为返回值,因此主要应该用于CSS / HTML格式化。 我建议您使用自己的HTML工具提示来获得更高级的内容,例如按钮:
Highcharts.wrap(Highcharts.Point.prototype, 'select', function (proceed) {
proceed.apply(this, Array.prototype.slice.call(arguments, 1));
var points = mapChart.getSelectedPoints();
$('tooltip-button-close').click(function () {
points[0].select(false);
}
});