antvis/G2


The issue has been closed
[v5] 期望可以通过设置相同 scaleKey 进行比例尺的同步 #4559
visiky posted onGitHub
现状
在多轴图中,设置了比例尺 independent: true
之后,就无法将多个不同 mark 标记的比例尺进行同步了
<img width="1174" alt="image" src="https://user-images.githubusercontent.com/15646325/211252767-04fae3ea-5191-40af-b02a-c1437cf5a075.png">
期望
如下代码所示,将相同 scaleKey 的标记的比例尺进行同步(类似于 G2 4.0 的 scale.sync 功能)
{
type: 'view',
children: [
{ type: 'line', scale: { scaleKey: '1' } },
{ type: 'line', scale: { scaleKey: '2' } },
{ type: 'line', scale: { scaleKey: '1' } },
{ type: 'line', scale: { scaleKey: '2' } },
{ type: 'line', scale: { scaleKey: '3' } },
]
}