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

如何在单个y轴下展示组合图表,比如折线图和柱状图组合,而不是产生两个y轴? #3862

Closed
1 task
xiekailian opened this issue Apr 12, 2022 · 2 comments

Comments

@xiekailian
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

https://g2.antv.vision/zh/examples/column/dodge#grouped

Steps to reproduce

按照官网链接的配置,会生成多轴的图表,想要像google的组合图表一样

Environment Info
g2 4.1.49
System -
Browser -
@xiekailian
Copy link
Author

想要像google的组合图表这样 image

@hustcc
Copy link
Member

hustcc commented Jun 22, 2022

其实实现原理一样的,就在图形中增加 line 和 interval 就自动实现了。也可以使用 G2Plot 封装好现成的。

https://g2plot.antv.vision/zh/examples/dual-axes/column-line#custom-column-line

@hustcc hustcc closed this as completed Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants