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 (49 views, 2.00 KB)
Nevron Support
Posted 12 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

Hi Enjoyear

You need to display the const line at the back chat wall try:

NAxisConstLine axisConstLine = new NAxisConstLine();
axisConstLine.SetShowAtWall(ChartWallType.Front, false);
axisConstLine.SetShowAtWall(ChartWallType.Back, true);
axisConstLine.StrokeStyle.Color = Color.Red;
axisConstLine.Value = 300;
axis.ConstLines.Add(axisConstLine);



Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic