You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "chengzhanli (via GitHub)" <gi...@apache.org> on 2025/07/16 09:42:42 UTC
[I] [Bug] value axis with data less than 1e-10, resulting in a drawing error [echarts]
chengzhanli opened a new issue, #21109:
URL: https://github.com/apache/echarts/issues/21109
### Version
5.2.2
### Link to Minimal Reproduction
https://echarts.apache.org/examples/zh/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5AG4CGANgK5W0A0J6AthNDoATRmEYBZAbRIBfbunI58RVKTKUasBi3ZcesfoK0ixk6NPRySeKgCcIVQrADa-1WvXU6eAMaiwdnoesCaMRK7B6M4AjAB0AAyJSfEArFQAtNHRnLBxyUlpmfEAujkA9GWwAHLAYLCseAIA5rAA7hDMzLC2jqzMdQKwirh4sACitrbAtvpqMQn5qRnR8Tl5i4VZpbAV1bX1jdAt7Z3dvf2wg9gj45PTs6Tzi0uZAExrC_mb0aUPxfoyEj_GQAbiAA
### Steps to Reproduce
When ALL data is less than 1e-10, there is a problem in drawing the value axis, resulting in a drawing error.
### Current Behavior
axis and chart render error
### Expected Behavior
axis and chart render correct
### Environment
```markdown
- OS:
- Browser:
- Framework:
```
### Any additional comments?
It seems that when all data is less than 1e-10, it causes an axis range calculation error and a mapping error
--
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.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
Re: [I] [Bug] all data less than 1e-10 and value axis, resulting in a drawing error [echarts]
Posted by "chengzhanli (via GitHub)" <gi...@apache.org>.
chengzhanli commented on issue #21109:
URL: https://github.com/apache/echarts/issues/21109#issuecomment-3086474422
我没有找到最新版本的在线演示入口,演示地址提供的是线上的,不确定是否包含了昨天的 pr,但我在本地复现了这个问题
--
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
Re: [I] [Bug] all data less than 1e-10 and value axis, resulting in a drawing error [echarts]
Posted by "chengzhanli (via GitHub)" <gi...@apache.org>.
chengzhanli commented on issue #21109:
URL: https://github.com/apache/echarts/issues/21109#issuecomment-3086467790
@Ovilia 看起来这个问题还是没有解决,我看内部使用ROUND_SUPPORTED_PRECISION_MAX对 toFixed 的最大值有限制,为了保证兼容性限制在了 20 但是低于 20 的小数绘制仍然会存在问题。
https://echarts.apache.org/examples/zh/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5AG4CGANgK5W0A0JAvt-uRz4iqUmUo1YDFuy4l0jXHgAyjAEZVmI-bB69-sPFQBOEKoVgBtHaLHjqdPAGNGYMCbl3YAE1eMi1l7olgCMVAC0IQAcnLBhkQCcALoGXqERIQDssfFZKTpi6Yk5GVH5Xkk6euiVPADcQA
如果需要的话,我会稍后提交 pr 来修复这个问题
--
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
Re: [I] [Bug] all data less than 1e-10 and value axis, resulting in a drawing error [echarts]
Posted by "chengzhanli (via GitHub)" <gi...@apache.org>.
chengzhanli commented on issue #21109:
URL: https://github.com/apache/echarts/issues/21109#issuecomment-3077842560
The use of the min max attribute value will also cause drawing errors under e-20 circumstances. You can refer to the drawing effect of e20.
min: 'dataMin',
max: 'dataMax'
https://echarts.apache.org/examples/zh/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXLANprrJnmxgCeIApkQOQBuAhgDYCu9TANJXIBbCNGYATNmDYBZUf0HohbDBKmyVCquhX4AMmwBG9DkVTbyAM2AAnZWDD0bRS12gBjSDFgAKdt3oASgoLKht6MC4bOH8eADowYABRDBAYemhITh8ABkCAbkVyAF8i0qpy2ABdAXQaHHwiUipzbVoGZljeWu0RMVgmSWk5aC1elTVhzR6qXTwDY1MQ0Os7KUdnWFcPLzg_Th5g1tDYcMjo2C6E5NT0zIhsvMKTyorBSpqyPCcIekISQTHcjtRgDPDudZOMZUIZsJpFdAAekRJAAjHEcpisTkAKz0AC0ACYcnxYOjsVi8UScp8TsRyRTcfQANTE0kMil41k0opVd5kPnFfJAA
--
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
Re: [I] [Bug] all data less than 1e-10 and value axis, resulting in a drawing error [echarts]
Posted by "Ovilia (via GitHub)" <gi...@apache.org>.
Ovilia closed issue #21109: [Bug] all data less than 1e-10 and value axis, resulting in a drawing error
URL: https://github.com/apache/echarts/issues/21109
--
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
Re: [I] [Bug] all data less than 1e-10 and value axis, resulting in a drawing error [echarts]
Posted by "Ovilia (via GitHub)" <gi...@apache.org>.
Ovilia commented on issue #21109:
URL: https://github.com/apache/echarts/issues/21109#issuecomment-3082862566
Duplicated of #21099 . This bug has been fixed in #21107 .
--
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