I am working on a personal project with react and I need to show the data with chart.js.
This is the data:
I need to sort this data by date to show in line chart.
I tried to sort with this code but it's not working:
If you have any idea how to solve this please share your answer.
Any response will be appreciated.