简体   繁体   中英

Core Plot: Is it possible to enable the user to pinch-scale a graph on the x-Axis but not on the y-Axis?

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM