-
Notifications
You must be signed in to change notification settings - Fork 19.6k
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
log 类型轴label显示精度问题 #4158
Labels
Comments
这个项目是活动的么? |
贴图成功了,见右下角。 |
jiawulin001
added a commit
to jiawulin001/echarts
that referenced
this issue
May 18, 2022
This was referenced May 18, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题简述 (One-line summary)
当我们设置
series : [
{
name:'邮件营销',
type:'line',
stack: '总量',
areaStyle: {normal: {}},
data:[100, 100, 100, 100, 100, 100, 20000.0]
},
中的data中有20000.0 (或20000000000000,20000000000000000000)时,
图表的显示会变成19999.99999999等;
版本及环境 (Version & Environment)
当前3.1.10, 3.2.3都有问题
IE 9,Firefox 34 ESR,Chrome 53
Win 7
重现步骤 (Steps to reproduce)
期望结果 (Expected behaviour)
希望显示为20000或20000.0。
可能哪里有问题 (What went wrong)
浮点型数字精度导致的显示问题。
ECharts配置项 (ECharts option)
其他信息 (Other comments)
The text was updated successfully, but these errors were encountered: