y 轴数据都为 0 时,如何将折线显示在底部 x 轴上而不是中间? #6196
Answered
by
pearmini
sakura-flutter
asked this question in
Q&A
-
问题描述尝试配置过 重现链接https://stackblitz.com/edit/react-tmslnz?file=src%2Findex.js 重现步骤No response 预期行为数据都为 0 时折现显示在中间不太符合“直觉”,尤其是在多轴图中更为突出,而且一旦一个点有数据,整条折现变化很大。 请问有没有在数据都为 0 时在底部显示且不影响 y 轴定义域范围显示的配置方式? 感谢 平台No response 屏幕截图或视频(可选)No response 补充说明(可选)@antv/g2 Version: 5.1.15-beta.4 |
Beta Was this translation helpful? Give feedback.
Answered by
pearmini
Apr 23, 2024
Replies: 1 comment
-
所以这里比较好的做法去判断数据是否都为 0。如果都为 0,那么对 domain 等进行额外的配置,否则不配置。 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sakura-flutter
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
所以这里比较好的做法去判断数据是否都为 0。如果都为 0,那么对 domain 等进行额外的配置,否则不配置。