DataLabelStyle Arrow line issue?


Author
Message
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
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


Jacky zhang
Jacky zhang
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
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


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search