antvis/G2

The issue has been closed
Chart的scale类型从quantize切换为linear后,当所有图表隐藏时,Y轴上的值不会被清空 #2327
luhaifeng666 posted onGitHub
- G2 Version: 4.0.4
- Platform: Chrome 版本 81.0.4044.92(正式版本) (64 位)
- CodePen Link: https://codepen.io/luhaifeng666/pen/JjYGzNe
<!-- Enter your issue details below this comment. -->
在一开始设置Chart的scale类型为quantize
,后面触发图例的点击事件,切换Chart的scale类型为linear
, 当所有的图表都隐藏时,Y轴不会被清空。
期望在这种情况下,Y轴可以被清空, 只保留0刻度轴线。