iPhone核心图:图表放大缩小,Y轴较大,Y轴较小 [英] iPhone Core-plot: Chart Zoom In Zoom out, Y axis Bigger, Y axis Smaller

查看:368
本文介绍了iPhone核心图:图表放大缩小,Y轴较大,Y轴较小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在使用Core-plot进行iPhone图表开发。 我现在使用 CorePlot 0.4 ,示例代码 AAPLot 开发



请看下面的图片,然后你会知道我的问题是什么
非常感谢...



我真的需要帮助这个问题,
谢谢







我想要此应用程式的结果



>



解决方案

我在这里看到几个问题:


  1. Y轴刻度:尝试 CPTAxisLabelingPolicyAutomatic y轴上的标签政策。如果这不能给您足够的控制,请使用不同的标签策略,并使用绘图空间委派来调整标签参数,因为用户放大和缩小。


  2. p>消失的x轴:使其成为浮动轴。例如,

      x.axisConstraints = [CPTConstraints constraintWithLowerOffset:0.0]; 


  3. 最大缩放级别:使用 globalXRange globalYRange 绘制空间属性。


  4. 滚动条:这不是直接支持的。您可以使用绘图空间委托更新滚动条位置。



I am now using Core-plot for iPhone chart Development. But it has some requirement i can not reach.

I am now using CorePlot 0.4, example code AAPLot to develop

Please have a look the following image, then you will know what is my problem Thank you very much...

I really need help for this problem, thank you

i want my result like this application

解决方案

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.

这篇关于iPhone核心图:图表放大缩小,Y轴较大,Y轴较小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆