ChartJS place y-axis labels between ticks

Viewed 3273

I have the following graph: enter image description here

However, i'd like to shift the y axis labels to be the following:enter image description here

Is it possible to move the y axis labels in between the tick marks with ChartJS, like shown in the example image above?

Functionality is similar to the options.scales.yAxes[].ticks.position option, except currently it is defined as in the x direction for the y axis, where as I need it in the y direction for the y axis. And better yet, automatically centered.

2 Answers

I think you can use: yAxes: [{gridLines: { offsetGridLines: true }}] to do this. The label value will be the avg between the thicks.

Related