Profile Picture

How to move PointSeries on top of constant lines

Posted By Enjoyear Guo 12 Years Ago
Author
Message
Enjoyear Guo
questionmark Posted 12 Years Ago
View Quick Profile
Forum Member

Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)Forum Member (30 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 30, Visits: 1
Hi,

In my chart, I have a series of points as follows:
NPointSeries pointSeries = (NPointSeries) m_Chart.Series.Add(SeriesType.Point);
pointSeries.UseXValues = true;
pointSeries.PointShape = PointShape.Sphere;
pointSeries.Size = new NLength(4);
pointSeries.DataLabelStyle.Visible = false;
for (int i = 0; i < thePoints.Length; i++)
{
pointSeries.AddDataPoint( SOME RANDOM DATA );
pointSeries.FillStyles[i] = new NColorFillStyle(Color.FromArgb(160, thePoints[i].Color));
}

And I also have several const lines defined as follows:
m_Chart.Axis(StandardAxis.PrimaryX).ConstLines.Add();
NAxisConstLine theConstLine= m_Chart.Axis(StandardAxis.PrimaryX).ConstLines[0];
theConstLine.StrokeStyle.Color = Color.Orange;
theConstLine.StrokeStyle.Width = new NLength(1.5f);
theConstLine.FillStyle = new NColorFillStyle(new NArgbColor(125, Color.Orange));

My problem is no matter in which order I draw the points and constlines. The constant lines will always stay on top of points. So how can I make constant lines behind the points? Many thanks!


Attachments
picture.png (50 views, 2.00 KB)



Similar Topics


Reading This Topic