title: Get the currently selected range from RangeSelector in Highstock
body: <p>I'm using both highcharts and highstock and have some charts that use the <code>rangeSelector</code>.</p>
  
  <p>Everything's working fine, but I'd like to GET the currently selected range (when the user clicks one of the <code>rangeSelector</code> buttons), so that I can store it in a cookie to know which range I want to display by default next time.</p>
  
  <p>I've tried various things so far, like adding a <code>chart.events.redraw</code> test to try and catch the <code>chart.rangeSelector.buttons</code> object, but it doesn't seem to contain anything interesting in my case.</p>
  
  <p>To me, the ideal would be an event callback on the rangeselector.buttons, with a simple getter function, like the equivalent of the <code>chart.rangeSelector.buttons[x].setState()</code>, named <code>chart.rangeSelector.buttons[x].getState()</code> ?</p>
  
  <p>I'm surprised this doesn't exist... I must be missing something. Anybody can help on that ?</p>