1D Chart

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Mike Jones
Advanced
Posts: 192
Joined: Thu Feb 01, 2007 12:00 am
Contact:

1D Chart

Post by Mike Jones » Fri May 04, 2007 9:42 pm

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?

Edu
Advanced
Posts: 206
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia

Post by Edu » Mon May 07, 2007 8:47 am

Hi Mike

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;
If this doesn't help you, please give us more information about your need.
Best Regards,
Edu

Steema Support Central
http://support.steema.com/

Post Reply