Anyone have any ideas on how I could send the new x-axis values to a variable in my program so that I can load some more data points?

Maybe a special way to implement a zoomer so that when I choose a particular area to zoom the first and last points on the x-axis can be saved?

Thanks