Page 1 of 1

Aspect Ratio for X and Y Axis for 3D Plot.

Posted: Thu Nov 06, 2008 7:02 am
by 14047415
Hi,

I need to draw a 3D Plot based on Aspect Ratio for X,Y and Z Axis.
Using 'Aspect.Chart3DPercent' property , i am able to move(stretch or squeeze the Axis) the depth axis.
But, am not able to move the left and bottom axis.

Is there any property or method to move even these two axis?
Thanks in Advance.

Regards,
Sanyog

Posted: Thu Nov 06, 2008 10:00 am
by narcis
Hi Sanyog,

Yes, you can use this:

Code: Select all

			tChart1.Axes.Left.StartPosition = 10;
			tChart1.Axes.Left.EndPosition = 10;
You may also be interested in the All Features\Welcome !\Axes\Isometric axes example at the features demo, available at TeeChart's program group.

Posted: Fri Nov 07, 2008 9:10 am
by 14047415
Hi,
I tried giving this.tChart1.Axes.Left.StartPosition = 10;
and this.tChart1.Axes.Left.EndPosition = 40;

but result is not what I am expecting.
I have uploaded the image (AspectRatio.jpg) to show the problem with this implementation.

So, on the left axis the scale values gets repositioned.But I want the entire axis to be minimized to a particular value.
e.g.For Depth Axis (in my case X axis) which is circled with Green color,I had set tChart1.Aspect.Chart3DPercent = 30, and then the depth axis got compressed to 30%

Same functionality i need for Left (in my case Z axis )and Top Axis (Y axis).

Regards,
Sanyog

Posted: Fri Nov 07, 2008 10:18 am
by narcis
Hi Sanyog,

In that case you could try setting tChart1.Aspect.Chart3DPercent to 100% and set StartPosition and EndPosition for all your axes.

Also, have you looked at the Isometric Axes example? Was it of any help? You can find an example of using isometric axes in a 3D chart here. It's a TeeChart ActiveX thread but same applies to the .NET version.