Page 1 of 1

Axis labels displayed incorrectly in release 06.120613

Posted: Fri Jul 20, 2012 5:32 am
by 16555900
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

Re: Axis labels displayed incorrectly in release 06.120613

Posted: Fri Jul 20, 2012 7:27 am
by yeray
Hi Stanislaw,

You can upload your files using our upload page

Re: Axis labels displayed incorrectly in release 06.120613

Posted: Fri Jul 20, 2012 8:22 am
by 16555900
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

Re: Axis labels displayed incorrectly in release 06.120613

Posted: Mon Jul 23, 2012 10:31 am
by yeray
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 10654 times
v2012.06.png
v2012.06.png (6.07 KiB) Viewed 10667 times

Re: Axis labels displayed incorrectly in release 06.120613

Posted: Tue Jul 24, 2012 7:54 am
by 16555900
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

Re: Axis labels displayed incorrectly in release 06.120613

Posted: Tue Jul 24, 2012 8:21 am
by yeray
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?

Re: Axis labels displayed incorrectly in release 06.120613

Posted: Wed Jul 25, 2012 5:29 pm
by 16555900
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

Re: Axis labels displayed incorrectly in release 06.120613

Posted: Thu Jul 26, 2012 3:51 pm
by yeray
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.