You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/10/28 02:14:46 UTC
[GitHub] [echarts] echarts-bot[bot] commented on issue #17842: [Bug] 饼图百分比格式化错误
echarts-bot[bot] commented on issue #17842:
URL: https://github.com/apache/echarts/issues/17842#issuecomment-1294356588
@ProgramPlayer 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. 🤗
<details><summary><b>TRANSLATED</b></summary><br>
**TITLE**
[BUG] Pie chart percentage formatting error
**BODY**
### Version
5.4.0
### Link to Minimal Reproduction
https://codepen.io/hank-ly/pen/RwJPRyB
### Steps to Reproduce
Render the pie chart with a value of 1 set to 382206, a value of 2 set to 2, and a display label
### Current Behavior
With an accuracy of 2, when I display percentages for the values 382206 and 2, the percentage displayed is 100%, but it should actually be 99.99%.
### Expected Behavior
The percentage format after 382206/382208 should be 99.99%.
### Environment
```markdown
- OS:window10
- Browser:chrome 106.0.5249.121
- Framework:
```
### Any additional comments?
Testing has found that this occurs after executing 99.99947672471534.toFixed(2).
</details>
--
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.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org