We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
目标为设置显示图形的 frame,根据文档 chart.attr('frame', true)。但是不起作用。 g2 版本为 5.2.2。
`import { Chart } from "@antv/g2"; import data from "../data"; import "./styles.css";
const chart = new Chart({ container: "container", autoFit: true });
chart .interval() // chart.mark .data(data) // node.data() .encode("x", "genre") // node.encode() .encode("y", "sold") // node.encode() .encode("color", "genre") // node.encode() .attr('frame', true)
chart.render(); // 渲染`
https://codesandbox.io/s/antv-g2-5-0-template-z2gsmn?file=/src/index.js
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
问题描述
目标为设置显示图形的 frame,根据文档 chart.attr('frame', true)。但是不起作用。
g2 版本为 5.2.2。
`import { Chart } from "@antv/g2";
import data from "../data";
import "./styles.css";
const chart = new Chart({
container: "container",
autoFit: true
});
chart
.interval() // chart.mark
.data(data) // node.data()
.encode("x", "genre") // node.encode()
.encode("y", "sold") // node.encode()
.encode("color", "genre") // node.encode()
.attr('frame', true)
chart.render(); // 渲染`
重现链接
https://codesandbox.io/s/antv-g2-5-0-template-z2gsmn?file=/src/index.js
重现步骤
No response
预期行为
No response
平台
屏幕截图或视频(可选)
补充说明(可选)
No response
The text was updated successfully, but these errors were encountered: