Using Chart.js v4.3.0, I m trying to left-align x-axis labels on a vertical bar chart. They are centered by default and my reading of the docs indicates that adding this to the chart s options
would do it:
ticks: {
align: start ,
},
Weirdly, that moves the labels slightly right and still not aligned.
CodePen demo of issue: https://codepen.io/ChrisBup/pen/qBQWqPw
Expected Behavior:
I set labelOffset
to get the screenshot, but as it only takes a number of pixels, it s not a responsive solution.
Extra Context:
Chart.js version: 4.3.0
Browser: Chrome Version 113.0.5672.126 (Official Build) (arm64)