Axis labels displayed incorrectly in release 06.120613

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Stanislaw
Newbie
Newbie
Posts: 18
Joined: Thu Apr 15, 2010 12:00 am

Axis labels displayed incorrectly in release 06.120613

Post by Stanislaw » Fri Jul 20, 2012 5:32 am

Hello!

I have revealed an incompatibility between two versions of TeeChart 2012 Pro. The earlier version (05.120327) displays axes labels properly, the later (06.120613) not.

I prepared simple demo applications (compilled under different wersions of TeeCart) showing this effect. Unfortunaltelly, I cannot upload them because file size limit. Please compile the source code under both versions and oobserve differences. Upper labels on the left axis, are displayed incorrectly when compilled under the newest version. When series marks are visible then more labels are not shown. Unfortunatelly, I did not tested another axes, but is very likely that the same effect will be observed.
Additionally, for both version aligning of series marks works improperly when angle other than zero is set. Please check the PopupMenu.

Both applications were compilled under Delphi® XE2 Version 16.0.4504.48759; Update 4 HotFix 1

I wish a nice day for everybody ;-)

Stanislaw

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

Re: Axis labels displayed incorrectly in release 06.120613

Post by Yeray » Fri Jul 20, 2012 7:27 am

Hi Stanislaw,

You can upload your files using our upload page
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

Stanislaw
Newbie
Newbie
Posts: 18
Joined: Thu Apr 15, 2010 12:00 am

Re: Axis labels displayed incorrectly in release 06.120613

Post by Stanislaw » Fri Jul 20, 2012 8:22 am

Hi Yeray.

The upload page regret uploading with message: Received Labels Error.zip Content Type application/zip Length 3165003
Thus, I attach the sources only.

Stanislaw
Attachments
Labels Error sources.zip
(2.79 KiB) Downloaded 595 times

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

Re: Axis labels displayed incorrectly in release 06.120613

Post by Yeray » Mon Jul 23, 2012 10:31 am

Hi Stanislaw,

I see it now. I've added it to the defect list to be revised asap (TV52016272).
FYI: The simpler code to reproduce it would be this:

Code: Select all

uses Series, TeeConst;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.Title.Text.Text:=TeeMsg_Version;
  Chart1.View3D:=false;
  Chart1.Legend.Visible:=false;

  with Chart1.AddSeries(TLineSeries) do
  begin
    Add(0);
    Add(1000);
    Marks.ArrowLength:=35;
    Marks.Visible:=true;
  end;
end;
v2012.05.png
v2012.05.png (6.2 KiB) Viewed 10540 times
v2012.06.png
v2012.06.png (6.07 KiB) Viewed 10553 times
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

Stanislaw
Newbie
Newbie
Posts: 18
Joined: Thu Apr 15, 2010 12:00 am

Re: Axis labels displayed incorrectly in release 06.120613

Post by Stanislaw » Tue Jul 24, 2012 7:54 am

Hello Yeray,
I would like to turn your attention on another effect of this bug: when the axis maximum is rounded and the highest data value is lower than the rounded maximum then the last label do not appears too. I hope you will fix the both effects.

With the best wishes

Stanislaw

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

Re: Axis labels displayed incorrectly in release 06.120613

Post by Yeray » Tue Jul 24, 2012 8:21 am

Hi Stanislaw,
Stanislaw wrote:I would like to turn your attention on another effect of this bug: when the axis maximum is rounded and the highest data value is lower than the rounded maximum then the last label do not appears too.
I'm not sure to understand the difference with the main problem. Does it happen hiding the marks? Could you please modify the simple code above to get an example that reproduces what you mean?
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

Stanislaw
Newbie
Newbie
Posts: 18
Joined: Thu Apr 15, 2010 12:00 am

Re: Axis labels displayed incorrectly in release 06.120613

Post by Stanislaw » Wed Jul 25, 2012 5:29 pm

Hi Yeray,

Please use the following code:

procedure TForm1.FormCreate(Sender: TObject);
begin
Series1.Add(0);
Series1.Add(945);
Chart1.LeftAxis.MaximumRound:= true;
end;

The older release shows the tick and label "1000" on top of the left axis (as one can expect), the new release shows the tick but not the label.

Stanislaw

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

Re: Axis labels displayed incorrectly in release 06.120613

Post by Yeray » Thu Jul 26, 2012 3:51 pm

Hi Stanislaw,

You are right. It's probably the same problem.
I've added it to the TV52016272 description so it can help on finding the root of the problem.
Thanks for reporting it.
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