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
More options on pack transform #5875
Comments
PS facetRect 的 padding margin inset 好像都不起作用: |
@YiSiWang 分面的 padding margin inset 在 API 里面是在 new Chart 的时候指定: const chart = new Chart({
container: 'container',
width: 928,
height: 320,
paddingLeft: 60,
paddingBottom: 60,
}); 在 Spec 里面可以可以在 facet 指定: ({
type: "facetRect",
width: 928,
height: 320,
paddingLeft: 60,
paddingBottom: 60,
data: {
type: "fetch",
value: "https://assets.antv.antgroup.com/g2/anscombe.json",
},
encode: { x: "series" },
children: [
{
type: "point",
inset: 10,
encode: { x: "x", y: "y" },
style: { stroke: "#000" },
},
],
}); |
这个目前确实不支持,可以考虑给 pack 增加如下参数:
相关代码在这里:https://github.com/antvis/G2/blob/v5/src/transform/pack.ts @YiSiWang 要不要搞搞! |
这个有点太难了/狗头 |
【Runtus】认领 |
fix: #5964 |
问题描述
重现链接
No response
重现步骤
No response
预期行为
No response
平台
屏幕截图或视频(可选)
No response
补充说明(可选)
No response
The text was updated successfully, but these errors were encountered: