TAxisBreaksTool broken in Build 2012.07.121105

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
JPPienaar
Newbie
Newbie
Posts: 2
Joined: Wed Jan 02, 2013 12:00 am

TAxisBreaksTool broken in Build 2012.07.121105

Post by JPPienaar » Wed Mar 06, 2013 3:01 pm

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.
Attachments
Chart.jpg
A pic
Chart.jpg (214.89 KiB) Viewed 2767 times

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TAxisBreaksTool broken in Build 2012.07.121105

Post by Yeray » Fri Mar 08, 2013 3:15 pm

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).
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply