gpt4 book ai didi

javascript - 移除 Highcharts dataLabel 边框

转载 作者:搜寻专家 更新时间:2023-11-01 04:50:07 35 4
gpt4 key购买 nike

我在使用 Highcharts map 库时遇到了一些问题。如何去除黑色的 dataLabels 边框?

这是我的设置:

var Map = $('#container').highcharts('Map', {
mapNavigation: {
enabled: true,
buttonOptions: {
verticalAlign: 'bottom'
}
},

colorAxis: {
min: 0
},

series : [{

mapData: Highcharts.maps['gbpostcodes'],

dataLabels: {
enabled: true,
fontSize:'20px',
color:'yellow',
borderWidth: 0,
format: '{point.properties.Name}'
}

}]
});

(见附件截图) enter image description here

最佳答案

修复此问题的 Highcharts V5 代码是

dataLabels: {
style: {
textOutline: 0
},
}

关于javascript - 移除 Highcharts dataLabel 边框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32311174/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com