This may sound trivial but I am interested in charting a 1 dimensional chart. I would like to add points to a series by calling an add method like
Add(double[]).
I would like to see the output to look like points on the X axis of a 2D chart if my series style = Points or have it look like a line segment if I select series style = Line.
Am I using the appropriate series styles?
Is there something I not aware of that might be a better choice?
1D Chart
-
- Advanced
- Posts: 192
- Joined: Thu Feb 01, 2007 12:00 am
- Contact:
Hi Mike
Run the below code, and you will see the difference between two series.
If this doesn't help you, please give us more information about your need.
Run the below code, and you will see the difference between two series.
Code: Select all
Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
double[] x = new double[]{0.5, 0.8, 0.1, 0.4};
line1.Add(x);
Steema.TeeChart.Styles.Points points1 = new Steema.TeeChart.Styles.Points(tChart1.Chart);
double[] y = new double[] { 1.5, 1.8, 1.1, 1.4 };
points1.Add(y);
//You can play with this properties to see differents possibilities of each serie.
line1.Pointer.Visible = true;
line1.LinePen.Visible = false;
line1.Pointer.Pen.Visible = false;
line1.LineHeight = 5;
line1[2].Color = Color.Aqua;
line1.Pointer.Color = Color.Blue;
points1.LinePen.Visible = false;
points1.Color = Color.Salmon;
points1.Depth = 2;