3👍
✅
This is because quickchart by default still uses V2 and V2 syntax is different so you will need to put it like this:
options: {
scales: {
yAxes: [{
ticks: {
reverse: true
}
}]
}
},
Edit:
Chart.js draws datasets in order the are in the datasets array by default (last to first if I remember correctly). So you would need to reorder your datasets.
You can also use the order property in the dataset to specify the draw order.
To make the legend the way it still is you can try to accomplish it using the sort callback. If that doesn’t work you will need to provide a custom generateLabels function where you can give the items back in the order you want
Source:stackexchange.com