mirror of
https://github.com/dataease/dataease.git
synced 2026-05-18 17:58:11 +08:00
fix(图表): 修复地图在部分设备上提示显示异常 (#15362)
This commit is contained in:
@@ -568,6 +568,9 @@ export class Map extends L7PlotChartView<ChoroplethOptions, Choropleth> {
|
||||
return result
|
||||
}
|
||||
const head = originalItem.properties
|
||||
if (!head) {
|
||||
return result
|
||||
}
|
||||
const { adcode } = head
|
||||
const areaName = subAreaMap['156' + adcode]
|
||||
const valItem = areaMap[areaName]
|
||||
|
||||
@@ -1003,6 +1003,9 @@ export function configL7Tooltip(chart: Chart): TooltipOptions {
|
||||
return result
|
||||
}
|
||||
const head = originalItem.properties
|
||||
if (!head) {
|
||||
return result
|
||||
}
|
||||
const formatter = formatterMap[head.quotaList?.[0]?.id]
|
||||
if (!isEmpty(formatter)) {
|
||||
const originValue = parseFloat(head.value as string)
|
||||
|
||||
Reference in New Issue
Block a user