How Do I Create a Line from Points?
Posted: Tue Jul 10, 2012 2:55 pm
Hi
This must sound like such a simple question but I can't get it to work. I'm creating a line thus;
theLine = new Line();
theLine.Add(new Point(0, 0));
theLine.Add(new Point(1, 1));
theLine.Add(new Point(2, 2));
myChart.Series.Add(theLine);
Anyone know why my chart isn't displaying a line. Nothing is displayed.
Note I can display the line by doing this;
int[] X = {1,2,3};
int[] Y = {1,2,3};
Line line1 = new Line();
line1.Add(X,Y);
myChart.Series.Add(line1);
But I dont want to build up my line like this because I wont be able to predefine the values in an array.
Im getting the values from some hardware so I just want to keep adding points
We are using TeeChart version 3.5.3187.15585 and C#.NET
This must sound like such a simple question but I can't get it to work. I'm creating a line thus;
theLine = new Line();
theLine.Add(new Point(0, 0));
theLine.Add(new Point(1, 1));
theLine.Add(new Point(2, 2));
myChart.Series.Add(theLine);
Anyone know why my chart isn't displaying a line. Nothing is displayed.
Note I can display the line by doing this;
int[] X = {1,2,3};
int[] Y = {1,2,3};
Line line1 = new Line();
line1.Add(X,Y);
myChart.Series.Add(line1);
But I dont want to build up my line like this because I wont be able to predefine the values in an array.
Im getting the values from some hardware so I just want to keep adding points
We are using TeeChart version 3.5.3187.15585 and C#.NET