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