Highstocks rangeSelector, `selected` not working on button with `offsetMin` (v6.0.3) #7467
Comments
Hi, Thank you for reporting about the problem. |
Interna note: time set by selected button in chart config doesn't include offsetMin |
Sorry why was this closed, was there a solution to this bug that was issued 2 years ago? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behaviour
Using the
selected
config option in therangeSelector
should select a button by default.Actual behaviour
No button iselected/s highlighted. Instead, It's like the default option for
1y
is being selected where as I need it to use myoffsetMin
.Live demo with steps to reproduce
https://jsfiddle.net/h3g09d50/
I have created a custom button with this config:
The
offsetMin
is there so 1 year and 1 day will be shown, so rather than:This date range will be used:
However, the
selected
field doesn't work with this button.Commenting out line 28 in the demo (the
offsetMin
field) causes theselected
option to work again.Thanks for the hard work!
The text was updated successfully, but these errors were encountered: