We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How do you rotate x-axis labels?

Thread ID:





117054 Jul 29,2014 04:19 PM UTC Jul 30,2014 04:50 AM UTC JavaScript 1
Tags: ejChart
Anthony Lofton
Asked On July 29, 2014 04:19 PM UTC

Depending on the number of x-axis labels, they overlap and make it hard to read.  Is there a way to rotate the labels at 45 or 90 degrees so they are all visible?

Anandaraj T [Syncfusion]
Replied On July 30, 2014 04:50 AM UTC

Hi Anthony,

Thanks for using Syncfusion products.

We suggest you to use "labelRotation" property of primaryXAxis to rotate x-axis labels.

Please refer the following code snippet to achieve this.
                              title: { text: 'Countries' },
                              labelRotation: 90,

We have created a simple sample for rotating labels of x-axis and it can be downloaded from the following link.

Please let us know if you have any concern.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon