IPhone Core-plot: Chart Zoom In Decrease, Y-axis More, Y-axis Less

Now I am using Core-plot to develop iPhone diagrams. But he has some kind of demand that I cannot achieve.

Now I am using CorePlot 0.4 , AAPLot sample code for development

Please see the following image, then you will find out what my problem is. Thank you so much.

I really need help solving this problem, thanks

enter image description here

enter image description here

I need my result like this application

enter image description here

enter image description here

+4
source share
1 answer

Here I see a few questions:

  • Y axis scale: try the CPTAxisLabelingPolicyAutomatic labeling CPTAxisLabelingPolicyAutomatic on the y axis. If this does not give you enough control, use a different labeling policy and use the space delegate to adjust the labeling options as you increase and decrease size.

  • Disappearing x axis: make it a floating axis. For instance,

     x.axisConstraints = [CPTConstraints constraintWithLowerOffset:0.0]; 
  • Maximum level of scaling: use the properties of the globalXRange and globalYRange . If you need more control, you can use the delegate space.

  • Scroll Bars: This is not directly supported. You can use the space delegate to update the position of the scroll bar.

+5
source

All Articles