Chart IsAutoMajor

Hi,
 
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.
 
Thanks
Emma

4 Replies

EC Emma Clarke November 1, 2012 03:51 PM UTC

I am using version 10.102.0.44
 
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 =

ExcelKnownColors.Grey_25_percent;

chart.PrimaryCategoryAxis.Border.LineWeight =

ExcelChartLineWeight.Narrow;

if (chart.PrimaryCategoryAxis.HasMajorGridLines) {

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

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


JM Johnson Monohar M Syncfusion Team November 2, 2012 06:14 AM UTC

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 (10.3.0.43). 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 :
http://www.syncfusion.com/downloads/latest-version

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.

Thanks,
Johnson



EC Emma Clarke November 2, 2012 11:12 AM UTC

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


MR Mahajothi R Syncfusion Team November 2, 2012 01:03 PM UTC

Hi Emma Clarke,

 

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

 

Regards,

Mahajothi.


Loader.
Up arrow icon