Page 1 of 1

not a valid date and time

Posted: Thu Feb 24, 2011 12:03 pm
by 10553605
Hi

we're using teechart 8.05 (and we hope we won't need to upgrade because of this problem)

the thing is the following, the bottom axis is a datetime value.
when the datetime format is dd/mm/yyyy (see relevant images inside the zip) then everything is ok
when the datetime format is dd-mmm-yyyy (see relevant images inside the zip) whenever the chart is shown, meaning when it wants to draw the chart we receive the attached error (see image) and the chart is NOT drawn

we couldn't understand what is so special with the format. notice that we receive NO exception (no delphi exception)! only the error popup and the chart is not drawn
please advice

Re: not a valid date and time

Posted: Fri Feb 25, 2011 8:52 am
by yeray
Hi Nari,

I've tried it with the following code and seems to work fine for me here both with v8.07 and v2010.02. Could you please try it?

Code: Select all

uses Series;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.Legend.Visible:=false;

  with Chart1.AddSeries(TLineSeries) do
  begin
    XValues.DateTime:=true;
    FillSampleValues();
  end;

  Chart1.Axes.Bottom.DateTimeFormat:='dd/mm/yyyy';
//  Chart1.Axes.Bottom.DateTimeFormat:='dd-mmm-yyyy';
end;
So I think you may be doing something more that could be causing the problem. Could you please modify the code above so we can reproduce the problem here? Or could you please arrange a simple example project we can run as-is to reproduce the problem here?