How to formatted tooltip value? #94
Answered
by
RafaelCENG
BigFaceMaster
asked this question in
Q&A
-
const options = {
tooltip: {
formatter: params => {
custom function body
return 'result'
}
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
RafaelCENG
Aug 1, 2023
Replies: 2 comments 3 replies
-
You can use valueFormatter. From the echarts docs tooltip: {
trigger: "axis",
valueFormatter: function (params) {
return `${params}W`;
},
}, Now if you want to show only the value for example you can do something like this. formatter: function (params) {
return `${params[0].data}.W`;
}, Also this is working 100% on single LineChart. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
BigFaceMaster
-
在Tooltip中使用 自定义的 html ,似乎依旧有问题 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use valueFormatter. From the echarts docs
Now if you want to show only the value for example you can do something like this.
Also this is working 100% on single LineChart.