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

frame 属性不起 作用 #6393

Closed
clarastar opened this issue Aug 7, 2024 · 0 comments
Closed

frame 属性不起 作用 #6393

clarastar opened this issue Aug 7, 2024 · 0 comments

Comments

@clarastar
Copy link

问题描述

目标为设置显示图形的 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

平台

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

屏幕截图或视频(可选)

image

补充说明(可选)

No response

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

No branches or pull requests

1 participant