Is what my axes looks like with this code:
NDateTimeScaleConfigurator dateTimeScale = new NDateTimeScaleConfigurator();
dateTimeScale.LabelStyle.ContentAlignment = ContentAlignment.TopLeft;
dateTimeScale.LabelStyle.Offset = new NLength(-7);
dateTimeScale.LabelValueFormatter = new NDateTimeValueFormatter(" yyyy");
dateTimeScale.EnableUnitSensitiveFormatting = false;
dateTimeScale.AutoDateTimeUnits = new NDateTimeUnit[] { NDateTimeUnit.Year };
dateTimeScale.OuterMajorTickStyle.Length = new NLength(10);
chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator = dateTimeScale;
I would prefer to have my year label centered between the two major ticks instead of justified near the tick. I've been trying several things but I can't seem to find a way to do this. Is there another approach where I can center this label?