Skip to content
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

一个chart里,多个view的图形重叠了,怎么办?(adjust只能影响同一个view里的图形) #2678

Closed
huangup opened this issue Jul 5, 2021 · 4 comments
Labels
Question Further information is requested

Comments

@huangup
Copy link

huangup commented Jul 5, 2021

image

@huangup
Copy link
Author

huangup commented Jul 5, 2021

antvis/G6#3014

@visiky
Copy link
Member

visiky commented Jul 6, 2021

方案 1、图层相互偏移下
方案 2、放在一个图层内,进行处理

@visiky visiky closed this as completed Jul 6, 2021
@huangup
Copy link
Author

huangup commented Jul 8, 2021

方案 1、图层相互偏移下
方案 2、放在一个图层内,进行处理

如果是放在一个view内,那怎样把Y轴在左边和在右边的图形分开画?

@visiky
Copy link
Member

visiky commented Jul 8, 2021

  1. 一个 view 中暂不支持多 y 轴
  2. 如果这个图表很复杂,内置提供的图表不满足,建议看下 G2Plot 开放扩展机制去定制图表。但要求是对 G2 有所了解,另外 G2Plot 的每个图表都是用心处理过的,从架构上是流水线的处理,很多复用的功能,可以参考下具体实现,去实现一个定制的 adaptor。对于你的场景,可以参考下双轴图的实现。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants