iPhone Core-plot: 图表缩放,Y轴放大,Y轴缩小

4
我现在正在使用Core-plot开发iPhone图表。但是它有一些我无法满足的要求。
我现在正在使用CorePlot 0.4,示例代码AAPLot进行开发。
请看以下图片,然后您就会知道我的问题了。非常感谢…
我真的需要帮助解决这个问题,谢谢。
我希望我的结果像这个应用程序一样。
1个回答

5
我看到这里有几个问题:
  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.


用户是否可以触摸图表? - nullmicgo
这种图表类型还没有内置到Core Plot中的触摸委托。请参见此处的讨论:http://groups.google.com/group/coreplot-discuss/browse_thread/thread/766fed30536f40a8/11274c6465d56d10#11274c6465d56d10 - Eric Skroch
现在我正在使用最新的CorePlot版本1.0-1.1。 CorePlot框架不支持包含超过1000个数据的交互式图表。当用户尝试在1000个数据的图表上进行缩放时,性能会变得非常慢。 - nullmicgo

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接