Page 1 of 1

Incorrect date time in Y axis.

Posted: Tue Oct 26, 2004 1:42 pm
by 8120385
I am having this code in my aplication:
bar3d.YValues.DateTime = true;
double d = 0.5;
bar3d.Add(d, endTime, startTime, myText, Color.Red);

Where startTime and endTime is time represented as double. When this is plotted in the chart I only get the clock, (e.g, 4:00 PM) not the whole date. Is there something I can do about it? I want full date time on the Y axis.

Thanks.
awiklund

Posted: Tue Oct 26, 2004 2:45 pm
by Pep
Hi,

you can set the format of the DateTime label using :
tChart1.Axes.Left.Labels.DateTimeFormat="dd/MM hh:mm";