Version 6 with Borland Builder 4

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Roy
Newbie
Newbie
Posts: 64
Joined: Wed Feb 25, 2009 12:00 am
Location: Dallas, Texas
Contact:

Version 6 with Borland Builder 4

Post by Roy » Fri Jul 16, 2010 7:28 pm

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.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Version 6 with Borland Builder 4

Post by Yeray » Mon Jul 19, 2010 8:02 am

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;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply