forked from github/dataease
Merge pull request #4299 from dataease/pr@dev@fix_map_tooltip_zero
fix(地图): 数据为0在提示中无法展示出来
This commit is contained in:
commit
014401e68b
@ -73,7 +73,7 @@ export function baseMapOption(chart_option, chart, themeStyle, curAreaCode, seri
|
|||||||
tooltip.formatter = params => {
|
tooltip.formatter = params => {
|
||||||
const a = params.seriesName
|
const a = params.seriesName
|
||||||
const b = params.name
|
const b = params.name
|
||||||
const c = params.value ? params.value : ''
|
const c = params.value ?? ''
|
||||||
return text.replace(new RegExp('{a}', 'g'), a).replace(new RegExp('{b}', 'g'), b).replace(new RegExp('{c}', 'g'), c)
|
return text.replace(new RegExp('{a}', 'g'), a).replace(new RegExp('{b}', 'g'), b).replace(new RegExp('{c}', 'g'), c)
|
||||||
}
|
}
|
||||||
chart_option.tooltip = tooltip
|
chart_option.tooltip = tooltip
|
||||||
|
Loading…
Reference in New Issue
Block a user