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

如果y轴对应的数据都是0,为什么0刻度位于中间,有什么办法让他位于起始坐标? #2500

Open
lf19991011 opened this issue Apr 13, 2024 · 3 comments

Comments

@lf19991011
Copy link

通过tab控制不同图表展示,当其中一个tab选项的图表,y轴的值都是0,则0位于y轴轴线中间,我还不能设置scale限制定义域的值,因为最大值不同,单独设置最小值domainMin:0,不能生效。所以有什么其他办法解决嘛?

@ai-qing-hai
Copy link
Collaborator

现在的配置没发实现你的要求。 能否直接判断所有数据是否为0, 然后加入 domainMax。

@ai-qing-hai
Copy link
Collaborator

@lf19991011

@qingfengmy
Copy link

图片

示例代码就能复现,全部为0时,0怎么贴近x轴?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants