I use the HighStock library especially for its range selector.In my report, I have range buttons "3d", "1w", "1m", "6m", "1y".

The problem is that I don't want the same series for "3d", "1w" and "1m", "6m", "1y". Why? Because I want to draw daily measures if the range is lower than a week, and I want to draw monthly measures if the range is upper. I'd like to change the serie when the range changes.

How can I put a callback function when the user clicks on a range button ?