如何在 Highmaps 的工具提示中隐藏要点和系列名称?
How to suppress the bullet point and series name in Highmaps' tooltip?
在 »series« 元素内使用工具提示时,它会显示一种我不想看到的要点(最后是系列名称):
有什么办法可以抑制这种情况吗?找不到任何东西。似乎在使用不在系列元素内的工具提示元素时不会发生这种情况。但是,我没有成功访问 JSON 国家/地区名称标签。
这里is a fiddle.
Highcharts.mapChart('container', {
series: [{
mapData: Highcharts.maps['customMap'],
joinBy: 'ISO3CD',
keys: ['ISO3CD', 'value'],
data: [
["RUS", 200]
],
tooltip: {
pointFormat: '{point.properties.ROMNAM}: <b>{point.value}</b>'
}
//data: data,
}]
});
感谢任何提示。
这是工具提示header,可以这样隐藏:
tooltip: {
headerFormat: undefined,
pointFormat: '{point.properties.ROMNAM}: <b>{point.value}</b>'
}
在 »series« 元素内使用工具提示时,它会显示一种我不想看到的要点(最后是系列名称):
有什么办法可以抑制这种情况吗?找不到任何东西。似乎在使用不在系列元素内的工具提示元素时不会发生这种情况。但是,我没有成功访问 JSON 国家/地区名称标签。
这里is a fiddle.
Highcharts.mapChart('container', {
series: [{
mapData: Highcharts.maps['customMap'],
joinBy: 'ISO3CD',
keys: ['ISO3CD', 'value'],
data: [
["RUS", 200]
],
tooltip: {
pointFormat: '{point.properties.ROMNAM}: <b>{point.value}</b>'
}
//data: data,
}]
});
感谢任何提示。
这是工具提示header,可以这样隐藏:
tooltip: {
headerFormat: undefined,
pointFormat: '{point.properties.ROMNAM}: <b>{point.value}</b>'
}