Skip to content

Lables on the ticks of the axis #9774

Answered by LeeLenaleee
beagle-elgaeb asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@beagle-elgaeb
Comment options

Answer selected by beagle-elgaeb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants