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

chart.guide(...).rect is not a function #3983

Closed
cxb068396 opened this issue Jun 15, 2022 · 1 comment
Closed

chart.guide(...).rect is not a function #3983

cxb068396 opened this issue Jun 15, 2022 · 1 comment

Comments

@cxb068396
Copy link

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

@cxb068396
Copy link
Author

const getOneDayChartItems = this.lightTimeVos;
this.chart = new Chart({
container: this.basicColumnChartProp.container,
width: this.basicColumnChartProp.width,
height: this.basicColumnChartProp.height
});
this.chart.source(getOneDayChartItems);
this.chart
.line()
.position("month*tem")
.color("city");
this.chart.guide().rect([5, "min"], [7, "max"]); // 6月 - 8月最低温度
this.chart.render();

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