Axis caption at wrong position

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
moelski
Newbie
Newbie
Posts: 92
Joined: Tue Jun 19, 2007 12:00 am
Contact:

Axis caption at wrong position

Post by moelski » Tue May 26, 2009 3:06 pm

Hi !

You wrote this for 8.05:
16) [TV52013795]
Axes titles painted at the wrong position
under some circumstances. Fixed.
Will this fix the problem where sometimes the axis caption for custom axis is placed over the axis labels?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue May 26, 2009 3:15 pm

Hi moelski,

I'm not sure about which is the exact issue you describe. However, full description for TV52013795 is this:

if I do the following:-
* Add a new chart to a form
* Add a new Points series (normal)
* Set the Left and Bottom Axis to have a chart title
* Again for both the Left and Bottom axis, set the Labels/Style/Visible property to false
* Set the legend's visible property to false

Now if you go back to the designer and resize the chart the title for the bottom axis appears all over the place!

Then if you run it (just with 'tChart1[0].FillSampleValues()'), the bottom title appears to be somewhere around the title and the right axis label doesn't appear at all..
Code to reproduce:

Code: Select all

uses Series;

procedure TForm1.FormCreate(Sender: TObject);
var Series1: TPointSeries;
begin
 Series1:=TPointSeries.Create(Self);
 Series1.ParentChart:=Chart1;

 Series1.FillSampleValues();

 Chart1.Legend.Visible:=false;
 Chart1.Axes.Left.MinimumOffset:=10;
 Chart1.Axes.Left.MaximumOffset:=10;
 Chart1.Axes.Left.Title.Caption:='Left';
 Chart1.Axes.Left.Labels:=false;

 Chart1.Axes.Bottom.MinimumOffset:=10;
 Chart1.Axes.Bottom.MaximumOffset:=10;
 Chart1.Axes.Bottom.Title.Caption:='Bottom';
 Chart1.Axes.Bottom.Labels:=false;
end;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

moelski
Newbie
Newbie
Posts: 92
Joined: Tue Jun 19, 2007 12:00 am
Contact:

Post by moelski » Tue May 26, 2009 3:17 pm

Hi Narcis,

thx for the input.
I will check it and hopefully I can reproduce the error I talked about.

Post Reply