highslide-software/highcharts.com — Issue #767: YTD range selector can give inverted setExtremes range
Author: eolsson
Created: 2012-02-21 09:15:52+00:00
State: open
Labels: Bug, Highstock

1. Open the example: http://jsfiddle.net/gh/get/jquery/1.7.1/highslide-software/highcharts.com/tree/master/samples/stock/xaxis/events-setextremes/
2. Click the YTD button
3. Look at the logged range.

Result: Now that we are at 2012 the range is printed as 2012-01-01 00:00:00, 2011-05-10 00:00:00
Expected: Hmm, this could be ok, but it just looks odd when the from-date is later than to-date.