I spent way too much time on and way over-thought making it so that this "plot zoom" feature always shows a reasonable x axis range with sensible breaks while still providing a significant difference across the whole range of the slider.
The trick was to just hard-code a series of x axis steps that humans would expect (5,10,25,50,100, ...) and to give the zoom factor a logarithmic scale internally.
3 media files