答案 0 :(得分:0)
您可以通过className
属性添加自定义类名称:
var data = [
...,
['DE.TH', 704, 'myCustomClassName']
];
Highcharts.mapChart('container', {
...,
series: [{
data: data,
keys: ['code_hasc', 'value', 'className'],
...
}]
});
实时演示: https://jsfiddle.net/BlackLabel/vojLzdsa/
API参考: https://api.highcharts.com/highmaps/series.map.keys
类名'highcharts-name-...'
是默认名称,您可以在创建图表后将其从元素中删除,也可以编辑相关的源代码:
https://github.com/highcharts/highcharts/blob/master/js/parts-map/MapSeries.js#L827