antvis/G2


The issue has been closed
[Bug]: view 多 mark 情况下,interval.tansform 会影响 line 分组 #6657
moayuisuda posted onGitHub
Describe the bug / 问题描述
想要的效果是,在双轴图中,柱形图的空间不被折线图影响,所以用了 dodgeX(参考 adc)
柱形图空间被占用问题:https://stackblitz.com/edit/react-chvm779o-qgu8qnrr?file=src%2Findex.js
但是发现用了 transform 后,line 的 series 不生效了
interval 无 transform
interval 有 transform
https://stackblitz.com/edit/react-chvm779o-73z28r2r?file=src%2Findex.js
看起来是 dodgeX 提前产生了 series scale
导致这里直接 return,不再生成 line 的 domain
但这里如果不 return,生成全部的 domain,又会导致 interval 计算布局的时候,空间被 line series 占用
目前在尝试看能不能布局的时候,仅根据相同 type 的 mark series 来计算布局
Reproduction link / 复现链接
No response
Steps to Reproduce the Bug or Issue / 重现步骤
No response
Version / 版本
Please select / 请选择
OS / 操作系统
- macOS
- Windows
- Linux
- Others / 其他
Browser / 浏览器
- Chrome
- Edge
- Firefox
- Safari (Limited support / 有限支持)
- IE (Nonsupport / 不支持)
- Others / 其他