Nevron Forum

DataLabelStyle Arrow line issue?

https://www.nevron.com/Forum/Topic5763.aspx

By Jacky zhang - Wednesday, October 26, 2011

Hi,

when I show a datalable from a mouse click. data label shows that arrow line start from middle of text. I supposed that it should start from bottom of backplane. does my version is too old?

my version is 9.1.13.12

source code like below:

NHitTestResult result = nChartControl1.HitTest(e.X, e.Y);

if (result.ChartElement == ChartElement.DataPoint)

{

NLineSeries pline = (NLineSeries) result.Series;

string m_label = (string)pline.Labels[result.DataPointIndex];

NDataLabelStyle label = new NDataLabelStyle();

label.Format = m_label;

label.Visible = true;

label.TextStyle.BackplaneStyle.StandardFrameStyle.OuterBorderColor = Color.Green;

label.TextStyle.BackplaneStyle.StandardFrameStyle.InnerBorderColor = Color.Green;

label.ArrowStrokeStyle = new NStrokeStyle(Color.Green);

label.TextStyle.BackplaneStyle.Shape = BackplaneShape.SmoothEdgeRectangle;

pline.DataLabelStyles[result.DataPointIndex] = label;

nChartControl1.Refresh();

}

 

-Jacky

By Nevron Support - Tuesday, November 1, 2011

The endpoint of the data label arrows is in the middle of the text - this is by design and works the same way in all versions so far. When label backplanes are visible they partially overlap the arrow lines.

We will consider adding a mode that clips the data label arrows so that they don't appear behind the labels.