0👍
Solved question by sorting my tdata array by date.
tdata.sort(function(a,b){
return new Date(a.x) - new Date(b.x)
})
- Chartjs-ChartJS Bar Issue – Showing "zeros" and not center bars
- Chartjs-Problem creating chart out of GET request with Angular
Source:stackexchange.com