ant-design-charts icon indicating copy to clipboard operation
ant-design-charts copied to clipboard

🐛[BUG] 对双折线图 - 多折线进行 bursh-x 后, 双击恢复发现折现到图外去了

Open xuoutput opened this issue 2 years ago • 4 comments

🐛 bug 描述 [详细地描述 bug,让大家都能理解]

对双折线图 - 多折线进行 bursh-x 后, 双击恢复发现折现到图外去了 image

📷 复现步骤 [清晰描述复现步骤,让别人也能看到问题]

在 demo 示例这里 https://charts.ant.design/zh/examples/dual-axes/dual-line#dual-multi-line 配置增加一行代码 image interactions: [{ type: 'brush-x' }],

原图形 image 鼠标对图形进行一个 x 轴的刷选 之后 双击恢复 image

🏞 期望结果 [描述你原本期望看到的结果]

💻 复现代码 [提供可复现的代码,仓库,或线上示例]

© 版本信息

  • ant-design-charts 版本: [1.4.2]
  • 浏览器环境
  • 开发环境 [e.g. mac OS]

🚑 其他信息 [如截图等其他信息可以贴在这里]

xuoutput avatar Sep 27 '22 11:09 xuoutput

=_=

xuoutput avatar Oct 10 '22 02:10 xuoutput

加个padding: 20, 试试

lxfu1 avatar Oct 10 '22 02:10 lxfu1

加个padding: 20, 试试

tql

xuoutput avatar Oct 12 '22 08:10 xuoutput

加个padding: 20, 试试

但又有另外一个问题, 如果不是 padding: 'auto', 坐标轴的数字会显示不全的, 也就是不好确定 padding 的大小 image

xuoutput avatar Oct 12 '22 09:10 xuoutput