DateTime X Values in C# Problem

TeeChart for ActiveX, COM and ASP
Post Reply
JC
Newbie
Newbie
Posts: 9
Joined: Tue Feb 01, 2005 5:00 am
Location: South Africa

DateTime X Values in C# Problem

Post by JC » Thu Mar 29, 2007 8:38 am

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'

JC
Newbie
Newbie
Posts: 9
Joined: Tue Feb 01, 2005 5:00 am
Location: South Africa

Post by JC » Thu Mar 29, 2007 8:51 am


Post Reply