iPhone核心图:图表放大缩小,Y轴较大,Y轴较小 [英] iPhone Core-plot: Chart Zoom In Zoom out, Y axis Bigger, Y axis Smaller
问题描述
我现在使用Core-plot进行iPhone图表开发。 我现在使用 CorePlot 0.4 ,示例代码 AAPLot 开发
请看下面的图片,然后你会知道我的问题是什么
非常感谢...
我真的需要帮助这个问题,
谢谢
我想要此应用程式的结果
>
我在这里看到几个问题:
-
Y轴刻度:尝试
CPTAxisLabelingPolicyAutomatic
y轴上的标签政策。如果这不能给您足够的控制,请使用不同的标签策略,并使用绘图空间委派来调整标签参数,因为用户放大和缩小。
- p>消失的x轴:使其成为浮动轴。例如,
x.axisConstraints = [CPTConstraints constraintWithLowerOffset:0.0];
-
最大缩放级别:使用
globalXRange
和globalYRange
绘制空间属性。 -
滚动条:这不是直接支持的。您可以使用绘图空间委托更新滚动条位置。
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:
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.Disappearing x-axis: Make it a "floating" axis. For example,
x.axisConstraints = [CPTConstraints constraintWithLowerOffset:0.0];
Maximum zoom level: Use the
globalXRange
andglobalYRange
plot space properties. If you need more control, you can use a plot space delegate.Scroll bars: This isn't directly supported. You could use a plot space delegate to update the scroll bar position.
这篇关于iPhone核心图:图表放大缩小,Y轴较大,Y轴较小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!