我创建了一个基本的小提琴here: - 地图JS是:
$(function () {
// Initiate the chart
$('#container').highcharts('Map', {
title: {
"text": "Simple Map"
},
series: [
{
"name": "07 March 2019",
"type": "map",
"data": [
{
"value": 23,
"name": "Blue",
"path": "M0,-994L204,-994L203,-480,0,-477z"
},
{
"name": "Yellow<br>is the colour of...",
"path": "M204,-994L455,-994L457,-477,203,-480z"
},
{
"name": "Red",
"path": "M455,-994,697,-991,700,-481,457,-477z"
},
{
"name": "Green",
"path": "M697,-991,998,-992,1000,-480,700,-481z"
}
]
}
]
});
});
那么,有两个问题:
您可以配置plotOptions.series.tooltip对象。
听起来你想要这些设置(在系列对象内):
tooltip: {
headerFormat: "",
pointFormat: "{point.name}"
},
Forked fiddle here并查看上面链接的文档以获取更多选项。