Higher-order function that generates a handler for zoom events, given the distinct series IDs that cover all
the axes in the chart, the margin, range update function, and the current state of the x- or y-axes. This
function returns a handler function. And this handler function adjusts the range when the plot is zoomed.
After calling the handler function, the plot needs to be updated as well, and this is left for the caller.
Please note that the function generated by this function has side effects -- it updates the axes ranges.
Higher-order function that generates a handler for zoom events, given the distinct series IDs that cover all the axes in the chart, the margin, range update function, and the current state of the x- or y-axes. This function returns a handler function. And this handler function adjusts the range when the plot is zoomed. After calling the handler function, the plot needs to be updated as well, and this is left for the caller.
Please note that the function generated by this function has side effects -- it updates the axes ranges.