Page 1 of 1

Labels are not clipped (D5, TeePro 7)

Posted: Thu Nov 04, 2004 3:57 pm
by 9339637
When you change the labelsize to values <> 0 and the LeftAxis.LabelsAlign to alOpposite, the labels paint their contents inside the series. Any idea to automatically (or manually) clip the text?

Tia Obelix

Posted: Thu Nov 04, 2004 11:08 pm
by Pep
Hi Obelix,

I cannot reproduce the problem here using the following code :

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
begin
Series1.FillSampleValues(5);
Chart1.Axes.Left.LabelsSize := 100;
end;

procedure TForm1.RadioButton1Click(Sender: TObject);
begin
if Sender = RadioButton1 then
  Chart1.Axes.Left.LabelsAlign := alDefault
else
  Chart1.Axes.Left.LabelsAlign := alOpposite;
end;

Posted: Fri Nov 05, 2004 8:57 am
by 9339637
Your code is working, but please change the code to:
Chart1.Axes.Left.LabelsSize := 20;

The starting/ending positions for labels (LabelsAlign = alOpposite or LabelsAlign = alDefault) are not the same. LabelsAlign = alOpposite let the labels begin more pixels to the right.

Tia Obelix

Posted: Fri Nov 05, 2004 5:24 pm
by Pep
Hi Obelix,

I'm sorry, I cannot see the problem here using the latest TeeChart Pro v7.01. Could you please send me a simple example directly to [email protected] ?