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






Similar Topics


Reading This Topic