Change Data by pinching and zooming

Hi forum!

I´m currently developing an app, where i display data sets, wich are distributed over months.

I´d like to implement the behaviour, that on view-enter the data from today to 6 months in the past is displayed.
If the user wants to change data, he should be able to pinch and zoom on the graph, to see more or less.
(Kind of slider beheaviour.)

Has someone already coded something like this? Is there a library, wich has this feature?