I’m working in Angular 17, using Ng2-charts for Angular
I was able to display the data on a line chart, but it seems like the data displayed isn’t sorted at all.
I tried logging the data, and in the console it appeared to be sorted. Do you have any idea of why this is happening?
Datasets on the chart
As you can see, something’s happening in the last part of the chart. Seems like the dataset isn’t sorted, but it is as it appears in the console
Console log 1
Console log 2
Console log 3
Console log 4
I tried sorting the datasets, but with no positive results.