You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Attempting to update Chart.js chart in React using react-chartjs-2, doc is unclear #411
changed the title [-]Attempting to update chart, doc is unclear[/-][+]Attempting to update Chart.js chart in React using react-chartjs-2, doc is unclear[/+]on Jun 23, 2019
Activity
[-]Attempting to update chart, doc is unclear[/-][+]Attempting to update Chart.js chart in React using react-chartjs-2, doc is unclear[/+]pringelmann commentedon Dec 3, 2019
@jscheinhorn Is there a specific reason you need to imperatively call the
update()method on each render call? If your data prop changes then the wrapper will automatically update the chart: https://github.com/jerairrest/react-chartjs-2/blob/master/src/index.js#L237dangreen commentedon Nov 30, 2026
Closing: this is a usage question rather than a bug report or a feature request. The docs of the wrapper are at https://react-chartjs-2.js.org and the chart options are described in the Chart.js docs: https://www.chartjs.org/docs/latest/