not a valid date and time

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Nati
Newbie
Newbie
Posts: 37
Joined: Mon Jun 29, 2009 12:00 am

not a valid date and time

Post by Nati » Thu Feb 24, 2011 12:03 pm

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
Attachments
Chart error.zip
(60.73 KiB) Downloaded 443 times

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: not a valid date and time

Post by Yeray » Fri Feb 25, 2011 8:52 am

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?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply