Does TAreaSeries support TDateTime Axis? I cannot find anything that says that it doesn't but a very simple example works for TGanttSeries but not for TAreaSeries.
I am using chart1.Axes.Bottom.DateTimeFormat := 'mm/dd'; and series1.XValues.DateTime := True; and
chart1.BottomAxis.Increment := DateTimeStep[dtTwoDays];
I have attached a very simple example.....
TAreaSeries TDateTime Axis
Re: TAreaSeries TDateTime Axis
Hello INL2,
I have made a simple example code that works fine for me in last version of TeeChart VCL.
Could you please, check if previous code works for you? If don't work, can you please, tell us what version of VCL are you using?
I hope will helps.
Thanks,
I have made a simple example code that works fine for me in last version of TeeChart VCL.
Code: Select all
procedure TForm1.FormCreate(Sender: TObject);
begin
Series2.FillSampleValues(10);
Series2.XValues.DateTime:=True;
Chart1.Axes.Bottom.DateTimeFormat:='mm/dd';
Chart1.Axes.Bottom.Increment:= DateTimeStep[dtTwoDays];
end;
I hope will helps.
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: TAreaSeries TDateTime Axis
Your example code worked for me and when I compared it to my example code, I could find the line that was breaking mine.
Series6 := TAreaSeries.Create(chart5);
As soon as I removed this line, it all worked. That line didn't seem to bother the other type of chart I was using.
Thanks for the help.
Series6 := TAreaSeries.Create(chart5);
As soon as I removed this line, it all worked. That line didn't seem to bother the other type of chart I was using.
Thanks for the help.
Re: TAreaSeries TDateTime Axis
I am glad that you have solved problem .
Thanks,
Thanks,