Change bins interactively

Is it possible to change the number of bins on a histogram either through the use of buttons or a slider?