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 App extends Component { state= { data : { labels: ['A', 'B', 'C'], datasets: [ { data: [300, 50, 100], backgroundColor: [ "#FF6384", "#36A2EB", "#FFCE56" ], hoverBackgroundColor: [ "#FF6384", "#36A2EB", "#FFCE56" ] }] } } handle =(event)=> { let a={...this.state}; ++a.data.datasets[0].data[0]; this.setState({ ...a }); event.preventDefault(); } render() { return ( <div> <div className="buttonlike"> <button onClick={this.handle}> Hello World</button> </div> <div> <Chart type="pie" data={this.state.data} /> </div> </div> ); } } export default App;
The text was updated successfully, but these errors were encountered:
Hi,
Thanks a lot for the sample code. But, next time, please use our codesandbox link to create a test project; https://codesandbox.io/s/qjx332qq4
Sorry, something went wrong.
15c59e3
HI, even there is no data change chart rerenders again and again please resolve this as soon as possible
mertsincan
No branches or pull requests
The text was updated successfully, but these errors were encountered: