New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【v5】柱线混合,前一个 mark 的 dodgeX tranform 会影响后一个的 Mark #5250
Comments
问题原因是 interval 和 line 都有 series 通道,但是两者推断的比例尺类型不同,有冲突,把 line 的 series 比例尺设置为独立的即可。 chart
.line()
.encode('x', 'time')
.encode('y', 'people')
.encode('shape', 'smooth')
.encode('color', 'type')
.scale('series', { independent:true }) |
内部有没有办法默认避免这种情况?不对 series 通道进行比例尺合并合理吗? |
合并的收益是什么。series independent 会有其它副作用吗? |
这和 transform 的关系不大,dodgeX 做的事情支持把 color 通道赋给了 series 通道而已。
这个问题我还得思考一下,如果没有问题,可以默认 independent。 |
这个例子就需要默认同步 series 的比例尺:https://g2.antv.antgroup.com/examples/analysis/group/#bar-multi-measure |
相同的问题:#5076 |
问题描述
线图在分组柱形后面,配置 color 映射。作图失败
对调代码后,渲染正常
对调后虽然可以渲染,但柱图遮住了线图不符合要求
期望结果
tranfrom 应该只影响对应的 mark。
如何重现
官方代码修改
额外信息
The text was updated successfully, but these errors were encountered: