Page 1 of 1

DateTime X Values in C# Problem

Posted: Thu Mar 29, 2007 8:38 am
by 9525824
Hi,

Started working with TeeChart yesterday, the ActiveX version, in C# .NET

I want to do the following: add a DateTime value as X value and double as Y value, but i get the following errors

Please help

Thanks
dt[j] = DateTime.ParseExact(reader[1].ToString(), "yyyy/MM/dd HH:mm:ss", provider);


axTChart1.Series(i).XValues.DateTime = true; axTChart1.Series(i).AddXY(dt[j],double.Parse(reader[2].ToString()), "", 1);
Errors:
The best overloaded method match for 'TeeChart.ISeries.AddXY(double, double, string, uint)' has some invalid arguments

Argument '1': cannot convert from 'System.DateTime' to 'double'

Posted: Thu Mar 29, 2007 8:51 am
by 9525824