How to Create Timeline with Dynamic Start/End Dates

I'm trying to think of an intuitive way to make the the start/end dates changeable for the timeline (x-axis) of this graph.

On mobile this would be easy because you could use pinch to zoom in/out but is there a good way to do it on desktop?

enter image description here