Lables on the ticks of the axis #9774
-
Hello! Is it possible to achieve the effect as in the image, the tick labels right under the ticks? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can use some trickery if you are using the category scale by adding extra whitespaces together with Other approach you can take is make the default ticks transparent so the space is still reserved and then draw the ticks yourself on the canvas at the right spaces |
Beta Was this translation helpful? Give feedback.
Afaik this is not possible with build in ways, the closest you can come is setting the offset of the grid to false but this will also make the grid fall in the bars instead of the bars falling in between the grid: https://jsfiddle.net/Leelenaleee/672bvgu0/2/You can use some trickery if you are using the category scale by adding extra whitespaces together with
tick align start
.https://jsfiddle.net/Leelenaleee/672bvgu0/5/
Other approach you can take is make the default ticks transparent so the space is still reserved and then draw the ticks yourself on the canvas at the right spaces