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.
Unfortunately, activation email could not send to your email. Please try again.

How do you rotate x-axis labels?

Thread ID:





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

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 12:50 AM

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.

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.