afanso opened a new issue #15188:
URL: https://github.com/apache/echarts/issues/15188
### Version
5.1.1
### Steps to reproduce
tooltip: {
trigger: "axis",
formatter(params) {
let cumulative = "0";
if (params[0].value[1] >= 1000000000) {
cumulative = (params[0].value[1] / 1000000000).toFixed(2)
"B";
} else if (params[0].value[1] >= 1000000) {
cumulative = (params[0].value[1] / 1000000).toFixed(2) "M";
} else if (params[0].value[1] >= 1000) {
cumulative = (params[0].value[1] / 1000).toFixed(2) "K";
} else {
cumulative = parseFloat(params[0].value[1]).toFixed(2) "";
}
let text = `委托价<br />${params[0].value[0]}<br />累计<br
/>${cumulative}`;
return text;
},
### What is expected?
应该在setoption后,tooltip应能实时更新对应位置的数据
### What is actually happening?
无法更新,只显示在第一次选中的数据
<!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
<!-- This issue is in English. DO NOT REMOVE -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]