I want that the user can zoom in/out a graph only on a single axis.
Is this possible and how?
You can do this with a plot space delegate. Implement the -plotSpace:willChangePlotRangeTo:forCoordinate:
delegate method. For the coordinate that you don't want to change, just return the old xRange
or yRange
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.