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
文档示例地址 修改如下:
class Demo extends React.Component { state = { type: 'interval', }; onClick = () => { let { type } = this.state; type === 'interval' ? type = 'line' : type = 'interval'; this.setState({ type }); }; render() { return ( <div> <Chart height={300} width="100%" data={data} defs={defs} animate={{ type: 'scaley' }} pixelRatio={pixelRatio}> <Axis dataKey="year" label={{ fontSize: 8 }}/> <Axis dataKey="sales"/> <Tooltip showItemMarker={false} onShow={onShowTooltip}/> <Geom geom={this.state.type} position="year*sales"/> <Legend/> </Chart> <button onClick={this.onClick}>改变</button> </div> ); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
文档示例地址
修改如下:
The text was updated successfully, but these errors were encountered: