LabelsOnAxis DateTime

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
kmanuele
Newbie
Newbie
Posts: 13
Joined: Mon Feb 09, 2004 5:00 am

LabelsOnAxis DateTime

Post by kmanuele » Thu Sep 23, 2004 6:52 pm

TChart 5.02 for BCB5;

I cannot get the series minimum value to appear on the axis as a label. Does LabelsOnAxis does not work for DateTime values??

Chart1->RightAxis->Title->Caption = "Time";
Chart1->RightAxis->DateTimeFormat = LongTimeFormat;
Chart1->RightAxis->ExactDateTime = true;
Chart1->RightAxis->AutomaticMinimum = true;
Chart1->RightAxis->AutomaticMaximum = true;
Chart1->RightAxis->LabelsOnAxis = true;
Chart1->RightAxis->Increment = DateTimeStep[dtOneMinute];

Solution??

Kevin

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

Post by Pep » Wed Sep 29, 2004 8:12 am

Hi Kevin,

perhaps the problem you're trying to display too many labels and the
internal anti-overlapping algorithm doesn't display all axis labels.

Have you tried adding :

Chart1->RightAxis->LabelsOnAxis = true;
Chart1->BottomAxis->RoundFirstLabel = false;
?

Post Reply