Feat: force date order in graph

This commit is contained in:
2019-01-30 17:21:09 +01:00
parent 68653aaabe
commit a6a37539bd
4 changed files with 25 additions and 2 deletions

View File

@@ -20,6 +20,19 @@ export default {
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
xAxes: [{
type: 'time',
time: {
parser: 'MMMM YYYY',
},
scaleLabel: {
display: true,
format: 'MMMM YYYY',
labelString: 'Date'
}
}]
},
legend: {
position: 'left'
}