-
I may have missed it, but how do you set the default range selector button? This post indicates you can set "active: true" however it doesn't work for me. layout:
xaxis:
rangeselector:
# see examples: https://plotly.com/javascript/range-slider/
# see API: https://plotly.com/javascript/reference/layout/xaxis/#layout-xaxis-rangeselector
"y": 1.2
buttons:
- count: 1
step: minute
- count: 1
step: hour
- count: 12
step: hour
- count: 1
step: day
active: true # Should this set the "day" as default?
- count: 7
step: day |
Beta Was this translation helpful? Give feedback.
Answered by
dbuezas
Jan 14, 2023
Replies: 1 comment 1 reply
-
This card sets the x axis range when it loads to match hours_to_show, which overrides this configuration. hours_to_show: 24 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
dbuezas
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This card sets the x axis range when it loads to match hours_to_show, which overrides this configuration.
I suggest you just set