I implement the zooming functionalility for the plot.
However, when I selected an area, the zoomed plot comes out is not the same area as I selected. Usually it has less data points to be shown in the graph. I don't know where it went wrong.
To make my question more clear, please see the attached screenshots.

Any suggestion is welcome and appreciated.

zoom1.jpgzoom2.jpg