Page 1 of 1

Version 6 with Borland Builder 4

Posted: Fri Jul 16, 2010 7:28 pm
by 10052635
Would like to how to set up TeeChart so that +/- X and Y values are plotted in four quadrants and if possible axis labels on the 0,0 lines.

Re: Version 6 with Borland Builder 4

Posted: Mon Jul 19, 2010 8:02 am
by yeray
Hi Roy,

Have you tried with axes' PositionPercent property? In Delphi you can do as follows:

Code: Select all

uses Series;

procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
    Series1: TPointSeries;
begin
  Chart1.View3D:=false;

  Series1:=Chart1.AddSeries(TPointSeries) as TPointSeries;
  for i:=0 to 49 do
    Series1.AddXY(i-25,Random(100)-50);

  Chart1.Axes.Left.PositionPercent:=50;
  Chart1.Axes.Bottom.PositionPercent:=50;
end;