antvis/G2

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

cxb068396 posted onGitHub

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


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();

posted by cxb068396 almost 3 years ago

Fund this Issue

$0.00
Funded

Pull requests