Here is my code, ignore the label values i'm hard coding them for now
for (int i = 0; i < bar.BeginValues.Count; i++)
{
float val = (100 / bar.BeginValues.Count) * i;
NLabel title = new NLabel("7:00:00");
title.TextStyle.FontStyle = new NFontStyle("Arial", 10, FontStyle.Italic);
title.Location = new NPointL(new NLength(3, NRelativeUnit.ParentPercentage), new NLength(val, NRelativeUnit.ParentPercentage));
title.TextStyle.BorderStyle.Width = new NLength(0);
title.Margins = new NMarginsL(0, 0, 0, 0);
title.ContentAlignment = ContentAlignment.MiddleCenter;
chart.ChildPanels.Add(title);
NLabel othertitle = new NLabel("8:12:00");
othertitle.TextStyle.FontStyle = new NFontStyle("Arial", 10, FontStyle.Italic);
othertitle.Location = new NPointL(new NLength(50, NRelativeUnit.ParentPercentage), new NLength(val, NRelativeUnit.ParentPercentage));
othertitle.Margins = new NMarginsL(0, 0, 0, 0);
othertitle.TextStyle.BorderStyle.Width = new NLength(0);
othertitle.ContentAlignment = ContentAlignment.MiddleCenter;
chart.ChildPanels.Add(othertitle);
}
}
What i was hoping to achieve was for a label to appear over each bar but it ends up looking like the attached image