Commit 9b21e962 authored by chris.yang's avatar chris.yang

feat:formatter处理

parent f8a176be
......@@ -51,7 +51,10 @@
},
tooltip: {
...that.elementInfo.option.tooltip,
trigger: "axis"
trigger: "axis",
formatter: val => {
return that.$u.common.converFunction(that.elementInfo.option.tooltip.formatter, val)
}
},
toolbox: {
...that.elementInfo.option.toolbox,
......
......@@ -53,7 +53,10 @@
},
tooltip: {
...that.elementInfo.option.tooltip,
trigger: "axis"
trigger: "axis",
formatter: val => {
return that.$u.common.converFunction(that.elementInfo.option.tooltip.formatter, val)
}
},
toolbox: {
...that.elementInfo.option.toolbox,
......
......@@ -47,7 +47,9 @@ export default {
tooltip: {
...this.elementInfo.option.tooltip,
trigger: 'item',
formatter: '{a}\n{b}:{c}({d}%)'
formatter: val => {
return that.$u.common.converFunction(this.elementInfo.option.tooltip.formatter, val)
}
},
series: this.dealSeriesData(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