For our sort function to work properly with dates in line-chart, data needs to be JS date objects: new Date()
If we apply the above line data into a BarChart, because dates are objects, Bar gives a warning:
Invalid prop data.indexValue of type date supplied to BarItem, expected string.
however, the chart seems to compile just fine.
Didn't find much online over barChart and dates