// Set Major Gridlines X
chart.CategoryAxis.MajorGridLines.IsVisible = true;
chart.CategoryAxis.MajorTickMark = Aspose.Cells.Charts.TickMarkType.Outside;
chart.CategoryAxis.MinorTickMark = Aspose.Cells.Charts.TickMarkType.Outside;
chart.CategoryAxis.CategoryType = Aspose.Cells.Charts.CategoryType.TimeScale;
chart.CategoryAxis.MajorGridLines.IsAuto = false;
chart.CategoryAxis.MajorUnitScale = Aspose.Cells.Charts.TimeUnit.Days; //this does not work.
chart.CategoryAxis.MajorUnit = 28;
chart.CategoryAxis.MinorUnitScale = Aspose.Cells.Charts.TimeUnit.Days;
chart.CategoryAxis.MinorUnit = 7;
chart.CategoryAxis.MinValue = new DateTime(2010, 07, 23);
chart.CategoryAxis.MaxValue = new DateTime(2011, 07, 15);
chart.CategoryAxis.TickLabels.NumberFormat = “m/d/yyyy”;
chart.CategoryAxis.BaseUnitScale = Aspose.Cells.Charts.TimeUnit.Days;
I have logged your issue with an id: CELLSNET-29067. We will figure it out soon.
Thank you.