chartjs / Chart.LinearGauge.js

Linear Gauge chart type for Chart.js
https://chartjs.github.io/Chart.LinearGauge.js/example
MIT License
55 stars 58 forks source link

Invert ticks #9

Closed nixbesser closed 6 years ago

nixbesser commented 6 years ago

Chart.js allows for inverting ticks via the 'reverse' option:

ticks: {
    reverse: true
}

This option does not work with LinearGauge. Is it possible? If yes, any help would be greatly appreciated.

nixbesser commented 6 years ago

Solved by reversing the scale range. Note: if using custom tick values then the scaleLabel must also use custom values.