Page 1 of 1

Axis caption at wrong position

Posted: Tue May 26, 2009 3:06 pm
by 10545590
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?

Posted: Tue May 26, 2009 3:15 pm
by narcis
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;

Posted: Tue May 26, 2009 3:17 pm
by 10545590
Hi Narcis,

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