Page 1 of 1

Zoom 3D Chart

Posted: Mon Aug 29, 2011 2:11 am
by 15657351
If I zoom a 3D chart using code, the chart will not zoom out beyong its original size (smaller).

I am using the following code:

Points1.Chart.Aspect.View3D = True
Points1.Chart.Walls.Visible = True
Points1.Chart.Aspect.Orthogonal = False
Points1.Chart.Aspect.Chart3DPercent = 100
Rotate1.Active = True
Steema.TeeChart.Drawing.TeeBase.TeeOpenGL.Active = True
TeeOpenGL1.Chart.Zoom.Active = True
TeeOpenGL1.Chart.Zoom.ZoomPercent(-10)
)

Re: Zoom 3D Chart

Posted: Mon Aug 29, 2011 3:15 am
by 15657351
Any value I use for zoompercent does not seem to work in code.

Re: Zoom 3D Chart

Posted: Mon Aug 29, 2011 3:50 am
by 15657351
I was using the 2D Zoom property. This code works:

Points1.Chart.Aspect.View3D = True
Points1.Chart.Walls.Visible = True
Points1.Chart.Aspect.Orthogonal = False
Points1.Chart.Aspect.Chart3DPercent = 100
Points1.Chart.Aspect.Zoom = 50
Points1.Chart.Aspect.View3D = True
Rotate1.Active = True
Steema.TeeChart.Drawing.TeeBase.TeeOpenGL.Active = True

Thanks,

Re: Zoom 3D Chart

Posted: Tue Aug 30, 2011 7:57 am
by yeray
Hello Lilo,

I'm glad to hear you found how to achieve it. :)