We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
export interface Chart extends Composition, Mark { render(): void; node(): HTMLElement; data: ValueAttribute<ChartProps['data'], Chart>; width: ValueAttribute<ChartProps['width'], Chart>; height: ValueAttribute<ChartProps['height'], Chart>; coordinate: ValueAttribute<ChartProps['coordinate'], Chart>; interaction: ObjectAttribute<ChartProps['interaction'], Chart>; key: ValueAttribute<ChartProps['key'], Chart>; transform: ArrayAttribute<ChartProps['transform'], Chart>; theme: ObjectAttribute<ChartProps['theme'], Chart>; title: ValueAttribute<ChartProps['title'], Chart>; scale: ObjectAttribute<ChartOptions['scale'], Chart>; axis: ObjectAttribute<ChartOptions['axis'], Chart>; legend: ObjectAttribute<ChartOptions['legend'], Chart>; style: ObjectAttribute<ChartOptions['style'], Chart>; labelTransform: ArrayAttribute<ChartOptions['labelTransform'], Chart>; } render(): Promise<Chart> { if (!this._context.canvas) { // Init width and height. const { width = 640, height = 480, renderer, plugins, autoFit, } = this.options(); const { width: adjustedWidth, height: adjustedHeight } = getChartSize( this._container, autoFit, width, height, ); this.width(adjustedWidth); this.height(adjustedHeight); // Create canvas if it does not exist. this._context.canvas = Canvas( this._container, width, height, renderer, plugins, ); } return new Promise((resolve, reject) => { try { reneder(this.options(), this._context, () => resolve(this), reject); } catch (e) { reject(e); } }); }
The text was updated successfully, but these errors were encountered:
有具体的错误提示吗?
Sorry, something went wrong.
有具体的错误提示吗? 接口中返回值是void,但实际返回的类型是Promise
fix: chart render type (#4853)
fd98bc3
0f10bbf
fix: chart render type (#4853) (#4861)
12f486c
2d5e736
4a582ed
pepper-nice
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: