chart zoom

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Jennifer
Newbie
Newbie
Posts: 20
Joined: Tue Dec 07, 2004 5:00 am

chart zoom

Post by Jennifer » Mon Jan 17, 2005 9:17 pm

we have a chart where we set
allowzoom:=True and
zoomdirection=horizontal in the chart editor. then,
\when we aoom as in chart.zoompercent(125), both axes zoom.
How can we restrict zoom to horiz axis?

Thanks,

Jennifer

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

Post by Pep » Tue Jan 18, 2005 12:49 am

Hi Jennifer,

yes, you're correct, it's a known bug, already added on our defect list, a fix for it will be considered to inclusion for the next maintenance releases. 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

Post Reply