Looks great!
Can you fix the following problem: When adjusting the number of bins while zoomed, the zoom gets corrupted in x-direction. zooming out reveals the effect (the view is too narrow). Also, the y-coordinate is reset. I guess that might not be easily fixable (can you recompute it from the ratio old number of bins vs new number of bins?). If it is not fixable the zoom should be completely reset to not confuse the user.
In master, the y-axis text '0' is indeed at the zero point in the data and stays there. In this branch it moves upwards the bigger the view is. Can this be fixed?
Looks great! Can you fix the following problem: When adjusting the number of bins while zoomed, the zoom gets corrupted in x-direction. zooming out reveals the effect (the view is too narrow). Also, the y-coordinate is reset. I guess that might not be easily fixable (can you recompute it from the ratio old number of bins vs new number of bins?). If it is not fixable the zoom should be completely reset to not confuse the user.