I need to extract x and y axis values form the database and plot them on a points graph.
The following code plots only y axis values:
points1.Add(rdr[0]);
Please advice.
plot x AND y axis values.
Re: plot x AND y axis values.
Hi cs_ech,
There are many overloads of the Add method. You are using this:
But note that there is also this:
So, if you have your X Values at rdr[0] and your Y values at rdr[1] you could do:
Please take a look at the Tutorial8 - ADO.NET Database Access (You'll find the tutorials at TeeChart programs group)
You could also take a look at here to see how to use BindingSource, and here to see how to assign a database manually.
There are many overloads of the Add method. You are using this:
Code: Select all
public int Add(double value)
Code: Select all
public int Add(double x, double y)
Code: Select all
points1.Add(rdr[0], rdr[1]);
You could also take a look at here to see how to use BindingSource, and here to see how to assign a database manually.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |