We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
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
import { Chart } from "@antv/g2"; fetch("https://assets.antv.antgroup.com/g2/barley.json") .then((res) => res.json()) .then((data) => { const chart = new Chart({ container: "container", height: 1000, width: 1300, paddingLeft: 140, paddingRight: 130, paddingBottom: 60, frame: false }); const facetRect = chart .facetRect() .data(data) .encode("y", "site") .encode("x", "variety"); facetRect .interval() .scale("color", { type: "ordinal" }) .encode("x", "year") .encode("y", "yield") .coordinate({ transform: [{ type: "transpose" }] }); // 关键: 图形旋转 chart.render(); });
给子视图设置了: coordinate({ transform: [{ type: "transpose" }] }); 后 x、y 轴显示错误。
coordinate({ transform: [{ type: "transpose" }] });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
复现步骤:
给子视图设置了:
coordinate({ transform: [{ type: "transpose" }] });
后 x、y 轴显示错误。预期结果
The text was updated successfully, but these errors were encountered: