Page 1 of 1

BottomAxis.Increment & Crosstab

Posted: Sat Jan 05, 2008 10:31 am
by 10547510
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.

Posted: Mon Jan 14, 2008 10:19 am
by Pep
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 ?

Posted: Mon Jan 14, 2008 10:58 am
by 10547510
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?

Posted: Thu Jan 17, 2008 8:42 am
by Pep
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);