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.

Chart IsAutoMajor

Thread ID:





105517 Nov 1,2012 11:39 AM Nov 2,2012 09:03 AM Windows Forms 4
Tags: XlsIO
Emma Clarke
Asked On November 1, 2012 11:39 AM

I am having some issues making the X axis label frequency automatic.
I am using a bar chart and even with IsAutoMajor = true the labels are all bunched up together
I have read several threads regarding the Chart IsAutoMajor having issues, do i have to use this feature in confunction with some else to make it work, as it doesn't appear to.
I can change the tick mark spacing and it does space out the labels correctly but i need it to be automatic.

Emma Clarke
Replied On November 1, 2012 11:51 AM

I am using version
And this is my chart setup. Sorry code doesn't paste in here very well.

Chart.PrimaryCategoryAxis.Title = XAxisTitle;

Chart.PrimaryCategoryAxis.TextRotationAngle = 45;
Chart.PrimaryCategoryAxis.IsAutoMajor = true
chart.PrimaryValueAxis.Title = YAxisTitle;
Chart.PrimaryValueAxis.TitleArea.TextRotationAngle = 90;

chart.PrimaryCategoryAxis.TitleArea.FontName = FontName;

chart.PrimaryCategoryAxis.TitleArea.Size = 10;
chart.PrimaryCategoryAxis.Font.Size = 8;
chart.PrimaryCategoryAxis.Font.FontName = FontName;
chart.PrimaryCategoryAxis.Border.ColorIndex =


chart.PrimaryCategoryAxis.Border.LineWeight =


if (chart.PrimaryCategoryAxis.HasMajorGridLines) {

chart.PrimaryCategoryAxis.MajorGridLines.LineProperties.ColorIndex = ExcelKnownColors.Grey_25_percent;

chart.PrimaryCategoryAxis.MajorGridLines.LineProperties.LineWeight =ExcelChartLineWeight.Narrow;

Johnson Monohar M [Syncfusion]
Replied On November 2, 2012 02:14 AM

Hi Emma Clarke,

Thank you for using Syncfusion products.

We would like to know your assembly version of Essential XlsIO. The issue that you are facing with clubbing of labels together has been fixed in our latest version ( A sample of that has been provided to you in the below link along with a video screen-shot of the same. Kindly try it with our latest version and let us know whether the issue is reproducing or not.

Sample Link : IsAutoMajor.zip

Video Screen-shot : ScreenCapture_11-2-2012 12.58.42 AM.wmv.zip

You can find the latest version from the link :

Moreover, if you are facing any issues still, you can create an incident using DirectTrac by logging in with your account details.

DirectTrac Link: https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents.

Please let us know whether your issue is resolved or if you need any clarification.


Emma Clarke
Replied On November 2, 2012 07:12 AM

Thanks Johnson,
I will try with the latest version and let you know.

Mahajothi R [Syncfusion]
Replied On November 2, 2012 09:03 AM

Hi Emma Clarke,


Thank you for updating us. Please let us know if you require any further assistance.





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.