Dragging a specific area of the chart to zoom out or in

I want to implement dragging a specific area of the chart to zoom out or in.
If you have an example, I would appreciate it.

Not really an answer… but I had wanted to do that too.

Instead I used the four arrow keys to implement zooming in/out and pan left/right.

In the end I find it faster and easier to use than if I had to drag on the graph to do the same thing.

YMMV