Right now i got a graph in plotly made in R with the following rangeselector:
xaxis = list(
rangeselector = list(
buttons = list(
list(
count = 7,
label = "1W",
step = "day",
stepmode = "backward"),
list(
count = 1,
label = "1M",
step = "month",
stepmode = "backward"),
list(
count = 3,
label = "3M",
step = "month",
stepmode = "backward"),
list(
count = 6,
label = "6M",
step = "month",
stepmode = "backward"),
list(
count = 1,
label = "1J",
step = "year",
stepmode = "backward"),
list(
count = 2,
label = "2J",
step = "year",
stepmode = "todate"))),
#rangeslider = list(type = "date")
FALSE
),
I'm trying to autoselect "1W" but i can't find the code to do that in the Plotly Documentation.
Is it possible to do that?