Hi Zonder,
Another approach is to use custom value labels:
NChart chart = nChartControl1.Charts[0];
NBarSeries bar = new NBarSeries();
bar.Values.Add(10);
bar.Values.Add(20);
chart.Series.Add(bar);
NStandardScaleConfigurator scale = chart.Axis(StandardAxis.PrimaryY).ScaleConfigurator as NStandardScaleConfigurator;
if (scale != null)
{
scale.CreateNewLevelForCustomLabels = false;
scale.CustomLabelFitModes = new LabelFitMode[] { LabelFitMode.RemoveOverlap };
NCustomValueLabel customLabel = new NCustomValueLabel();
customLabel.Text = "Some Label";
customLabel.Value = 15;
customLabel.Style.ZOrder = 1;
scale.CustomLabels.Add(customLabel);
}
In this case auto labels that are overlapping with the custom label will be removed from the scale.
Best Regards,
Nevron Support Team