-
Notifications
You must be signed in to change notification settings - Fork 19.7k
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
折线图,series的data数组为单个点时(或者多个点,但是值相同),y轴boundaryGap无效 #4417
Comments
我也遇到相同的问题,请问下解决了没有? |
@nthuida 没有解决 |
|
我的理解是,只有一个数据时,相当于最大值和最小值相等,缩放就按照那个值,应该没影响吧 @Ovilia |
@Ovilia |
OK 但是当值都相同时,boundaryGap没有生效 @Ovilia |
@nthuida 这是同一个问题,缩放会根据 |
哦,那我理解错了,那有没有其他的配置,当值相同时,使Y轴可以延长 |
@nthuida @Gyanxie 如果逻辑是这样的,能不能满足你们的需求:
|
@Ovilia 可以 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题简述 (One-line summary)
版本及环境 (Version & Environment)
重现步骤 (Steps to reproduce)
1.上述option运行的结果为异常情况,
2.将option的series data 替换为[1,2]后,运行的结果为正常情况
3.对比两次结果中,y轴的最大长度
期望结果 (Expected behaviour)
y轴设置boundaryGap 后,正常延长到设定的百分比
可能哪里有问题 (What went wrong)
ECharts配置项 (ECharts option)
其他信息 (Other comments)
上图给的代码是发生问题的代码,结果如下:
仅仅修改series的data为:[1,2]后(原来是[1]),显示正常:
The text was updated successfully, but these errors were encountered: