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

G2 V4 的 columnWidthRatio 配置,在 G2 V5 如何实现相似效果 #6386

Closed
wangxingkang opened this issue Jul 25, 2024 · 8 comments · Fixed by #6474
Closed

G2 V4 的 columnWidthRatio 配置,在 G2 V5 如何实现相似效果 #6386

wangxingkang opened this issue Jul 25, 2024 · 8 comments · Fixed by #6474

Comments

@wangxingkang
Copy link
Contributor

问题描述

v4 文档 https://g2-v4.antv.vision/zh/docs/api/advanced/register-theme/#%E4%B8%BB%E9%A2%98%E5%B1%9E%E6%80%A7

重现链接

No response

重现步骤

No response

预期行为

No response

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@hustcc
Copy link
Member

hustcc commented Jul 25, 2024

可以参考这些 demo:

@pearmini 我们是否给 interval 的 style 增加一个类似于 columnWidthRatio 的配置,现在是在 scale.padding 配置。

@wangxingkang
Copy link
Contributor Author

@pearmini 这个后续会支持吗

@pearmini
Copy link
Member

@wangxingkang 可以用 scale.x.padding 来实现,就像 @hustcc 说的一样。文档可以参考 @antv/scale 的文档。

@wangxingkang
Copy link
Contributor Author

好的,我看下

@wangxingkang
Copy link
Contributor Author

image @pearmini 这块的背景有参数设置吗 需求是与蓝色柱状边距 8px

@wangxingkang
Copy link
Contributor Author

@pearmini 有空解答下哈

@pearmini
Copy link
Member

pearmini commented Aug 4, 2024

@wangxingkang 目前背景的宽度是没有办法调整的。

@wangxingkang
Copy link
Contributor Author

好的 有没有相关的思路,通过增加配置解决,我这边尝试一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

3 participants