Very weird issue I am having working with react-chart-js 2, I have two fiddles to clearly demonstrate this problem. Basically I am using axios to pull API data to create my charts, when I click on a table header (the name or number header) to sort the data, the chart column data messes up and fails to work properly. However If I use basic dummy data on the componentDidMount function such as [1,2,3,4] then the sorting of the charts works exactly as expected. Why is this happening.
Fiddle 1 (with correct componentDidMount data and sorting causing issues)
https://codesandbox.io/s/confident-tdd-bj0sr
Fiddle 2 (dummy data and sorting works as expected