Dev 2.0 charts js supports the ability to change ticks when setting the axis so that your second axis declaration becomes
{ type: "invertedLinear", // only linear but allow scale type registration. This allows extensions to exist solely for log scale for instance display: true, position: "right", id: "y-axis-2", ticks: { reverse: true }, // grid line settings gridLines: { drawOnChartArea: false, // only want the grid lines for one axis to show up } }
Here it is in action https://jsfiddle.net/nwc8ys34/15/
source share