chartjs / Chart.js

Simple HTML5 Charts using the <canvas> tag
https://www.chartjs.org/
MIT License
64.5k stars 11.89k forks source link

X-Label Text Direction #11637

Open joshkarges opened 8 months ago

joshkarges commented 8 months ago

Feature Proposal

When rotating the x-labels past 90 degrees, the text direction should change so that the beginning of the label is against the axes. Instead it looks like this:

image

I can't find an option in the documentation to flip this text direction. Is there a workaround for this?

Possible Implementation

options

{
  scales: {
    xAxes: {
      textDirection: 'forward' | 'backward',
      ...
    },
    ...
  ...
}
asand2113 commented 5 months ago

I'll take a look at this issue