BottomAxis.Increment & Crosstab

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Tyrolean
Newbie
Newbie
Posts: 8
Joined: Tue Nov 27, 2007 12:00 am

BottomAxis.Increment & Crosstab

Post by Tyrolean » Sat Jan 05, 2008 10:31 am

Hi!

I have a Crosstab with a dateTime and I had exprected that

Chart1.BottomAxis.Increment := DateTimeStep[ dtOneDay ] ;

that this gives me a Axes with every Day, even when there is no Data available.

Should this work this way? Thank you.
Gruß aus den Bergen
Günter

Pep
Site Admin
Site Admin
Posts: 3299
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Jan 14, 2008 10:19 am

Hi Günter,

I'm not sure what do you expect. If there's not a returned data it will display an empty Chart.

Which results are you getting ? and what would you like to get ?

Tyrolean
Newbie
Newbie
Posts: 8
Joined: Tue Nov 27, 2007 12:00 am

Post by Tyrolean » Mon Jan 14, 2008 10:58 am

Hi!

I have Date for 3 Dates

01/11/2008 -> Value 1
01/13/2008 -> Value 2
01/14/2008 -> Value 3

I would expect a bottom axes with


Value1 No VAlue Value 2 Value 3
01/11/2008 01/12/2008 01/13/2008 01/14/2008

but I get

VAlue1 Value2 Value3
01/11/2008 01/13/2008 01/14/2008

Now I would like to know: Should this work as I excpect this or is the 'missing' date ok and I have to modify my data, so that there is a VAlue for every date?
Gruß aus den Bergen
Günter

Pep
Site Admin
Site Admin
Posts: 3299
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Jan 17, 2008 8:42 am

Hi,

in that case, just using similar code to the following should display the data as you expect :

Code: Select all

Chart1.BottomAxis.Increment := DateTimeStep[ dtOneDay ] ;
Series1.XValues.datetime := true;
Series1.AddXY(37000,10,'',clteecolor);
Series1.AddXY(37002,10,'',clteecolor);
Series1.AddXY(37003,10,'',clteecolor);

Post Reply