Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X-Axis Label Rotation 90 degree #2827

Closed
jayarathish opened this issue Jun 22, 2016 · 3 comments
Closed

X-Axis Label Rotation 90 degree #2827

jayarathish opened this issue Jun 22, 2016 · 3 comments

Comments

@jayarathish
Copy link

jayarathish commented Jun 22, 2016

I'm using barchart ,x Axis label want rotate 90 degree And the value of x & y label if my input 90.50 means it's displayed 90.5 only on Tooltip..See the Attached file
chartfiddle.zip

@etimberg
Copy link
Member

Please put this in a fiddle.

@jayarathish jayarathish changed the title X-Axis Label Rotation 90 degeree X-Axis Label Rotation 90 degree Jun 22, 2016
@etimberg
Copy link
Member

To stop the labels from rotating you can add

config: {
  scales: {
    xAxes: [{
      ticks: {
        maxRotation: 0 // angle in degrees
      }
    }]
  }
}

@carlosrberto
Copy link

@etimberg this is not documented
http://www.chartjs.org/docs/latest/axes/styling.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants