fix:修复自动提示输入框bug、图表toolbox添加提示

This commit is contained in:
wangwenrui
2020-07-10 19:00:29 +08:00
parent 2402c40a4f
commit 2589b29e8e
6 changed files with 104 additions and 41 deletions

View File

@@ -89,6 +89,34 @@
this.option=chartConfig.getOption(this.chartType);
}
if(this.chartType == 'map'){
let geoObj=JSON.parse(this.map.geoJson.geoJson)
geoObj.features.forEach(item=>{
if(this.option.geo.regions){
this.option.geo.regions.push({
name:item.properties.name,
itemStyle: {
normal: {
areaColor: randomcolor()
}
}
})
}else{
this.option.geo.regions=[{
name:item.properties.name,
itemStyle: {
normal: {
// areaColor: item.properties.stroke
areaColor: randomcolor()
}
}
}]
}
})
}
this.modifyOption('tooltip','position',this.defaultTooltipPosition)
if (this.tooltipFormatter) {