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
not a valid date and time
not a valid date and time
- Attachments
-
- Chart error.zip
- (60.73 KiB) Downloaded 442 times
Re: not a valid date and time
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?
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?
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;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |