antvis/G2

area给y轴设置domainMin时显示样式问题 #5954

lumdzeehol posted onGitHub

问题描述

面积图设置 chart.area().scale('y', { type: 'linear', domain: [20000, 30000] }); 后, 区域显示会下探到x轴以下

重现链接

https://codesandbox.io/p/sandbox/interesting-brook-fnxwdj

重现步骤

No response

预期行为

No response

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]

屏幕截图或视频(可选)

截屏2023-12-20 02 00 30

No response

补充说明(可选)

V4中设置了min 后,小于min的区域不会显示出来, V5 中的表现不一致了


如果希望不展示的话,可以设置 const chart = new Chart({ clip: true})

posted by pearmini over 1 year ago

Fund this Issue

$0.00
Funded

Pull requests