iPhone Core-plot: Chart Zoom In Zoom out, Y axis Bigger, Y axis Smaller

a 夏天 提交于 2019-12-01 18:56:17

I see several questions here:

  1. Y-axis scale: Try the CPTAxisLabelingPolicyAutomatic labeling policy on your y-axis. If that doesn't give you enough control, use a different labeling policy and use a plot space delegate to adjust the labeling parameters as the user zooms in and out.

  2. Disappearing x-axis: Make it a "floating" axis. For example,

    x.axisConstraints = [CPTConstraints constraintWithLowerOffset:0.0];
    
  3. Maximum zoom level: Use the globalXRange and globalYRange plot space properties. If you need more control, you can use a plot space delegate.

  4. Scroll bars: This isn't directly supported. You could use a plot space delegate to update the scroll bar position.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!