Commit 81d9e507 authored by leon's avatar leon

fix: fix map tooltip bug

parent 00d82801
...@@ -133,6 +133,9 @@ ...@@ -133,6 +133,9 @@
show: this.elementInfo.option.dataset.show, show: this.elementInfo.option.dataset.show,
trigger: 'item', trigger: 'item',
formatter: (value) => { formatter: (value) => {
if(!value.data) {
return ""
}
if(this.elementInfo.option.dataset.formatter) { if(this.elementInfo.option.dataset.formatter) {
return this.$u.common.converFunction(this.elementInfo.option.dataset.formatter, value) return this.$u.common.converFunction(this.elementInfo.option.dataset.formatter, value)
} else { } else {
...@@ -149,7 +152,7 @@ ...@@ -149,7 +152,7 @@
animationDurationUpdate: 1000, animationDurationUpdate: 1000,
universalTransition: true, universalTransition: true,
tooltip: { tooltip: {
show: false show: this.elementInfo.option.dataset.show
}, },
data: series, data: series,
}, { }, {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment