for (int i = 0; i < 20; i++) { chart.Annotations.Add ( new CartesianGridLineAnnotation { Axis = chart.HorizontalAxis, Value = i, Margin = new Thickness (0, topMargin, 0, topMargin), Stroke = this.m_supportLineBrush, StrokeThickness = 1, Label = $"Dyanmic{i}", ClipToPlotArea = false, LabelDefinition = new ChartAnnotationLabelDefinition () { Location = ChartAnnotationLabelLocation.Right, HorizontalOffset = -15 } }); }I have a chart with dynamically created CartesianGridLineAnnotations with labels. In some cases these annotations are very close together and the labels overlap. How do I keep this from happening? Is there any kind of "Smart Label" for grid line annotation?
Here is a simple example you can use to simulate my problem