2
votes

I need to present a chart for german school grades (best grade 1, worst 5).

I would like to have a Bar Chart that starts from 5 and goes to up 1, where 5 is the minimum value and 1 is the highest value on the Y-axis. In this way grade 1 (best grade) would result in a full bar and 5 (worst grade) in an empty bar.

The Y-axis should look like this: enter image description here

I could not find an option to set this in ChartJS. How can I set a range where the min value is higher than the max value?

1

1 Answers

0
votes
yAxes: [
    {
        reverse: true, // will reverse the scale
    }
]