Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

使用Spec API 设置title不生效 #5141

Closed
mcdyzg opened this issue Jun 1, 2023 · 0 comments
Closed

使用Spec API 设置title不生效 #5141

mcdyzg opened this issue Jun 1, 2023 · 0 comments

Comments

@mcdyzg
Copy link

mcdyzg commented Jun 1, 2023

问题:使用Spec API的时候,设置title不生效。

代码示例:

import { Chart } from "@antv/g2";

const chart = new Chart({ container: "container" });

chart.options({
  type: "interval",
  theme: "classic",
  autoFit: true,
  data: {
    type: "fetch",
    value:
      "https://gw.alipayobjects.com/os/bmw-prod/fb9db6b7-23a5-4c23-bbef-c54a55fee580.csv",
  },
  encode: { x: "letter", y: "frequency" },
  axis: { y: { labelFormatter: ".0%" } },
  title: "图表标题",
});

chart.render();
@antvis antvis locked and limited conversation to collaborators Jun 2, 2023
@pearmini pearmini converted this issue into discussion #5144 Jun 2, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant