Zoom Direction problems

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
SteveP
Advanced
Posts: 132
Joined: Sun Sep 07, 2003 4:00 am

Zoom Direction problems

Post by SteveP » Thu Dec 02, 2004 8:14 pm

Line Series Horizontal Zoom direction correctly zooms the X axis. The Y axis however only shows the top range.

Vertical Zoom direction : Y axis zooms correct. X axis seems to zoom to its 0 to about 20 % range. An up-left mouse drag to unzoom a chart freshly drawn using FillSampleValues results in the chart actualy being zoomed when nothing should happen. Repeated zuch unzoom mouse drags each result in successive unzoom operations.

This is for Ver 7.0, 7.01, 7.02

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Fri Dec 03, 2004 11:23 am

Hi Steve,

yes, you're correct, there's a known bug with the Zoom. In meantime the solution is to reset the axis scale in the OnZoom event :
if zoom.direction = horiz then
tchart1.axis.left.automatic = false
end if

SteveP
Advanced
Posts: 132
Joined: Sun Sep 07, 2003 4:00 am

Post by SteveP » Fri Dec 03, 2004 2:47 pm

I think you meant

if chart1.zoom.direction = tzdHorizontal then
chart1.Axes.left.automatic := true;

for vertical :
if chart1.zoom.direction = tzdVertical then
chart1.Axes.bottom.automatic := true;

What about the problem with Up Left mouse dragging always performing a zoom (instead of UnZoom as should be the default behavior) when chart1.zoom.direction = tzdVertical ? I've tried setting chart1.zoom.UpLeftZooms := false; in code and it still always does a Zoom.

Post Reply