-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
柱线组合图表时候色板顺序问题 #2260
Comments
Closed
就是要按照双轴图的思路绘制,如果你以 https://antv-g2.gitee.io/zh/examples/line/basic#curved 为例想要绘制你需要的图表,你需要将数据结构处理成双轴图的接口,需要将相同 x 字段的数据存储到一个对象内,然后使用 chart.interval() 和 chart.line() 绘制。 至于颜色按照正常的色板显示,这个需要你手动指定了 color(chart.getTheme().colors[0]) |
@simaQ
|
@simaQ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
尝试官方案例
https://antv-g2.gitee.io/zh/examples/line/basic#curved
如何让London成为柱展示,Tokyo是线 并且按照色板顺序显示颜色,legend操作正常,并且映射London,Tokyo的颜色
看到这个案例
https://antv-g2.gitee.io/zh/examples/other/other#double-axes
但并不是这个是双轴
能否提供一个思路
The text was updated successfully, but these errors were encountered: