Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] tooltip 设置 precision 保留2位小数无效 #16422

Closed
crazyair opened this issue Jan 25, 2022 · 3 comments
Closed

[Bug] tooltip 设置 precision 保留2位小数无效 #16422

crazyair opened this issue Jan 25, 2022 · 3 comments
Labels
bug pending We are not sure about whether this is a bug/new feature.

Comments

@crazyair
Copy link

crazyair commented Jan 25, 2022

Version

5.2.0

Link to Minimal Reproduction

https://codesandbox.io/s/funny-volhard-mclm9?file=/src/index.js

Steps to Reproduce

鼠标 hover 到第一个点上,显示的值省略了 .00

Current Behavior

省略了 00

Expected Behavior

保留2位小数

Environment

- OS:MAC
- Browser:chrome
- Framework:React

Any additional comments?

No response

@crazyair crazyair added the bug label Jan 25, 2022
@echarts-bot echarts-bot bot added pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Jan 25, 2022
@echarts-bot
Copy link

echarts-bot bot commented Jan 25, 2022

@crazyair It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗

TRANSLATED

TITLE

[Bug] tooltip setting precision to retain 2 decimal places is invalid

BODY

Version

5.2.0

Link to Minimal Reproduction

No response

Steps to Reproduce

Mouse hover over the first point, the displayed value omits .00

Current Behavior

00 is omitted

Expected Behavior

2 decimal places

Environment

- OS: MAC
- Browser:chrome
- Framework: React

Any additional comments?

No response

@Ovilia
Copy link
Contributor

Ovilia commented Jan 27, 2022

无法复现?
image

@crazyair
Copy link
Author

无法复现? image

#16332 在这里用 valueFomatter 实现了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug pending We are not sure about whether this is a bug/new feature.
Projects
None yet
Development

No branches or pull requests

2 participants