Profile Picture

DataLabelStyle Arrow line issue?

Posted By Jacky zhang 13 Years Ago
Author
Message
Jacky zhang
Posted 13 Years Ago
View Quick Profile
Junior Member

Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)Junior Member (16 reputation)

Group: Forum Members
Last Active: 10 Years Ago
Posts: 16, Visits: 1

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



Nevron Support
Posted 13 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009
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.



Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic