-
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
[Bug] the second log Y axis affects the first log #16992
Comments
@FM3631 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. 🤗 TRANSLATEDTITLE [Bug] Gird contains multiple Y axes, when multiple Y axis types are set to 'log' at the same time, the second Y axis affects the first Y axis, which god tells the little brother BODY Version5.2.2 Link to Minimal ReproductionNo response Steps to ReproduceDirect copy can see the phenomenon in echarts Current Behavior// prettier-ignore
], Expected Behavior1 Environment- OS:
- Browser:
- Framework: Any additional comments?none |
Problem locatingThis problem exist here: Lines 74 to 76 in 5cf53e2
When Echarts tries to obtain the extent of data and set ticks, it's trying to use the precision of originalExtent to fix powVal . This behavior is to fix the problem of #4158, where precision issue is caused by logarithm and exponentiation. However here powVal can be user-set min/max, which is 0.01 here and originalExtent is the real extent of data, which is 44 here. When using the precision of 44 to fix 0.01, tick value becomes 0 and it has nowhere to go on log axis. That's the reason why there's a big 0 up there.
Plan to fixThe way to fix #4158 is not fixing it completely (a user-set max of 2000000000000 still displays wrongly) and it also causes #16992. My plan is to change the way to fix #4158 and can fix #16992 in the same time. Submitting a PR to solve this |
This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue. |
This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks! |
Version
5.2.2
Link to Minimal Reproduction
Reproduction Link
Steps to Reproduce
Current Behavior
Expected Behavior
The two don't affect each other.
Environment
Any additional comments?
The text was updated successfully, but these errors were encountered: