Page 1 of 1

TAxisBreaksTool broken in Build 2012.07.121105

Posted: Wed Mar 06, 2013 3:01 pm
by 16464571
TAxisBreaksTool for the bottom axiz (Tdatetime)
The chart data is either 1 or 2 days with times at the bottom.
Chart.BottomAxis.DateTimeFormat := 'hh:MM';

The data contains a line running from 9:00 to 18:00

The idea is to remove the overnight gap.

Code: Select all

crttlAxisBreak.Breaks.Clear;

if Trunc(dttmpckFromDateStd.Date) <> Trunc(dttmpckToDateStd.Date) then // over 2 days
    begin
      DecodeDate(dttmpckFromDateStd.Date, yy, mm, dd);
      DecodeDate(dttmpckToDateStd.Date, yy2, mm2, dd2);
      crttlAxisBreak.Breaks.Add();
      crttlAxisBreak.Breaks[0].AxisBreakStyle := tabSmallZigZag;
      crttlAxisBreak.Breaks[0].StartValue := EncodeDateTime(yy, mm, dd, 18, 00, 0, 0);
      crttlAxisBreak.Breaks[0].EndValue := EncodeDateTime(yy2, mm2, dd2, 8, 30, 0, 0);
    end;
When the chart runs over 2 days only the first day shows times on the bottom axiz.

In v2011.03.30407 this used to work.

Re: TAxisBreaksTool broken in Build 2012.07.121105

Posted: Fri Mar 08, 2013 3:15 pm
by yeray
Hello,

You are right. The labels seem to work fine in v2012.06 but in v2012.07.
I've added it to the defect list to be revised for future releases (TV52016531).