Closed GoogleCodeExporter closed 8 years ago
It doesn't really make sense to talk of constraining an x axis for horizontal
movement, because it doesn't move. I can see what you want to achieve though.
I think you could do this using the CPPlotSpace delegate method
-(void)plotSpace:(CPPlotSpace *)space
didChangePlotRangeForCoordinate:(CPCoordinate)coordinate;
Just set the plot space delegate to your controller, then implement this
method. Set the axis labeling policy to CPAxisLabelingPolicyLocationsProvided,
and set the new locations of the ticks. Basically, the new locations should
just be the old locations, translated by however much the plot space has
shifted.
Original comment by drewmcco...@mac.com
on 14 Jul 2010 at 9:34
thanks a lot. that is exactly I was looking for
Original comment by Yakubovi...@gmail.com
on 14 Jul 2010 at 12:47
Original issue reported on code.google.com by
Yakubovi...@gmail.com
on 13 Jul 2010 at 3:59