Page 1 of 1

LabelsOnAxis DateTime

Posted: Thu Sep 23, 2004 6:52 pm
by 8578785
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

Posted: Wed Sep 29, 2004 8:12 am
by Pep
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;
?