2D View From top

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Willy
Newbie
Newbie
Posts: 2
Joined: Fri Nov 15, 2002 12:00 am

2D View From top

Post by Willy » Thu Dec 18, 2003 2:53 pm

Hi.

I have a TPoint3DSeries plot in the chart. If I set Chart1.View3D to false, I get a 2D View from the front (x-y axes), is there a easy way to obtain a 2D View from the top (x-z axes)?

Thanks,
WILLY

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Thu Dec 18, 2003 5:53 pm

Hi, Willy.

Yes, there is. Basically, all you have to do is rotate chart so that x-z plane will be perpendicular to your point of view:

Code: Select all

With Chart1 do
begin
    Chart3DPercent := 100;
    View3DOptions.Elevation := 270;
    View3DOptions.Orthogonal := False;
    View3DOptions.Perspective := 0;
    View3DOptions.Rotation := 360;
end;
Marjan Slatinek,
http://www.steema.com

Willy
Newbie
Newbie
Posts: 2
Joined: Fri Nov 15, 2002 12:00 am

Post by Willy » Thu Dec 18, 2003 6:28 pm

Hi.

Thanks! Sorry for the dumb question. I somehow managed to miss the perspective property when I was searching for a solution. :oops:

Thanks,
WILLY

Post Reply