You must be logged in to post your query.
Home › Forums › Chart Support › Refresh Bar Chart in React JS Failed
Tagged: ReactJS Chart
I tried to import bar chart using react js. However the chart cannot refresh when the state changes. (To be exact, the values in the bars change but the length of the bars don’t) I tried to rerender/forceupdate but it seems useless. Can any one provide me the solution? Many Thanks.
solutions found!
Activate this code onRef={ref => this.chart = ref}
And add this.chart.render() in the place you want to refresh the chart.
@stephenchankyand-co,
Glad that you found the solution :) Please refer documentation page on React for more information.
— Shashi Ranjan Team CanvasJS
You must be logged in to reply to this topic. Login/Register