plotcore-plot

change data source after zooming - core plot


I need to change the data source after zooming my plot, can I intercept in some way when zooming is finished?

I set the allowsUserInteraction=YES and so I can panning and zooming but I don't find the method for handle this event.


Solution

  • These are the correct methods:

    - (BOOL) plotSpace:(CPTPlotSpace *)space shouldHandlePointingDeviceDraggedEvent:(id)event atPoint:(CGPoint)point
    - (BOOL) plotSpace:(CPTPlotSpace *)space shouldHandlePointingDeviceDownEvent:(id)event atPoint:(CGPoint)point 
    - (BOOL) plotSpace:(CPTPlotSpace *)space shouldHandlePointingDeviceUpEvent:(id)event atPoint:(CGPoint)point {
    - (BOOL) plotSpace:(CPTPlotSpace *)space shouldScaleBy:(CGFloat)interactionScale aboutPoint:(CGPoint)interactionPoint