1
我想根据城市的名称为气泡着色。有点像this.point.capital ==蒙哥马利& this.point.capital ==朱诺;颜色=“红色”。但是我不能将这个if函数添加到color属性中。你能帮我吗?如何更改高图气泡颜色
谢谢!
series: [{
name: 'Basemap',
mapData: map,
borderColor: '#606060',
nullColor: 'rgba(200, 200, 200, 0.2)',
showInLegend: false
}, {
name: 'Separators',
type: 'mapline',
data: H.geojson(map, 'mapline'),
color: '#101010',
enableMouseTracking: false
}, {
type: 'mapbubble',
dataLabels: {
enabled: true,
format: '{point.capital}'
},
name: 'Cities',
data: data,
maxSize: '12%',
color: H.getOptions().colors[0]
}]
谢谢!那么,我如何将悬停改为正确的颜色? –
一般还是特定的点? –