I'am using NDateTimeScaleConfigurator to configure axis scale using this code:
NDateTimeScaleConfigurator scaleConfigurator = new NDateTimeScaleConfigurator
{
RoundToTickMax = true,
RoundToTickMin = true,
InflateViewRangeBegin = false,
InflateViewRangeEnd = false,
MinorGridStyle = { LineStyle = { Pattern = LinePattern.Dot } },
AutoDateTimeUnits = new NDateTimeUnit[]
{
NDateTimeUnit.Millisecond,
NDateTimeUnit.Second,
NDateTimeUnit.Minute,
NDateTimeUnit.Hour,
NDateTimeUnit.Day,
NDateTimeUnit.Week,
NDateTimeUnit.Month,
NDateTimeUnit.Year
}
};
scaleConfigurator.MajorGridStyle.SetShowAtWall(ChartWallType.Back, true);
scaleConfigurator.EnableUnitSensitiveFormatting = true;
for (int i = 0; i < scaleConfigurator.DateTimeUnitFormatterPairs.Count; i++)
{
NDateTimeUnitFormatterPair source = (NDateTimeUnitFormatterPair)scaleConfigurator
.DateTimeUnitFormatterPairs[i];
source.Formatter = new UtcToLocalDateTimeValueFormatter(source.Formatter);
}
scaleConfigurator.MajorTickMode = MajorTickMode.AutoMinDistance;
scaleConfigurator.MinTickDistance = new NLength(30, NGraphicsUnit.Pixel);
But in certain scenario where the axis has AxisOrientation.Depth only one label is show like in the attachement.
How could I configure it correctly?