|
Group: Nevron Team
Posts: 48,
Visits: 1
|
Hello Hans,
The following code demonstrates this approach. It doesn't help for semi-transparent tubes, but for opaque ones the results are fine.
NCartesianChart chart = (NCartesianChart)nChartControl1.Charts[0]; chart.Enable3D = true; chart.Projection.SetPredefinedProjection(PredefinedProjection.Perspective1);
NLineSeries line = new NLineSeries(); chart.Series.Add(line); line.DataLabelStyle.Visible = false; line.LineSegmentShape = LineSegmentShape.Tube; line.BorderStyle.Width = new NLength(0); line.LineSize = new NLength(20); line.FillStyle = new NColorFillStyle(Color.DarkOrange); line.InflateMargins = true;
line.MarkerStyle.Visible = true; line.MarkerStyle.BorderStyle.Width = new NLength(0); line.MarkerStyle.FillStyle = new NColorFillStyle(Color.DarkOrange); line.MarkerStyle.PointShape = PointShape.Sphere; line.MarkerStyle.AutoDepth = false; line.MarkerStyle.Width = new NLength(20); line.MarkerStyle.Height = new NLength(20); line.MarkerStyle.Depth = new NLength(20);
for(int i = 0; i < 100; i++) { line.Values.Add(Math.Sin(i * 0.05) * Math.Sin(i * 0.1)); }
By the way, www.thomann.de is a great store and is very popular among musicians in Bulgaria.
Best Regards, Milen Metodiev
|