Hi Zonder,
Another approach is to use custom value labels:
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
You can offset the label:
constLine.TextAlignment = ContentAlignment.MiddleCenter;constLine.TextOffset = new NPointL(-40, 0);The only problem with this approach is that you have to measure the label first in order not to have a hardcoded offset.
Hope this helps - let us know if you meet any problems or have any questions.