[Bug]: Labels on the X axis is not directly centered but slightly offsetted
Author: cocoaboxCreated Nov 1, 2025Updated Nov 1, 2025
Labelsbug
Would you like to work on a fix?
- Check this if you would like to implement a PR, we are more than happy to help you go through the process.
Current and expected behavior
X axis labels are left-aligned to each column. But they should should not be inside the cell but center aligned, x-offset by -50%.
Currently (using sample graphs in your page)
Expected
Reproduction
Just open up : https://gionkunz.github.io/chartist-js/examples.html
Chartist version
latest
Possible solution
No response
Source: chartist-js/chartist