Check out the CPTTestApp. It uses the built in scrolling.
Basically, you set the userInteractionAllowed property to YES on the graph.
Then, you make sure you set the appropriate globalRangeX and globalRangeY values on the plotRange, which will limit how far the user can scroll.
Drew
On 18/05/2012, at 4:56 AM, rustyshelf wrote:
> I want to draw a graph that fits in a 320x200 rectangle, but is 5000
> pixels long. eg: so you can keep scrolling horizontally to see more of
> it. So the Y axis fits fine in 200 pixels, and I don't want that to be
> scrollable, I just want the user to be able to scroll horizontally. I
> also want to disable zooming.
>
> The first thing I tried was creating a graph view that is 5000,200 and
> putting it in a UIScrollView that has it's content size set to that,
> but it's display size set to 320,200. I also turned user interaction
> off on the graph. This gives me the exact effect I want, but the
> performance is a bit cruddy with a view that long on an iPhone. What I
> really want to know is does core-plot already support that, and if so
> what am I missing? I've dug around the documentation and played with
> various properties, but I can't figure out how to get the desired
> effect.
>
> --
> You received this message because you are subscribed to the Google Groups "coreplot-discuss" group.
> To post to this group, send email to coreplot-discuss@googlegroups.com.
> To unsubscribe from this group, send email to coreplot-discuss+unsubscribe@googlegroups.com.
My apologies, completely missed: