Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201894

R Plotly rangeselector autoselect "1W"

$
0
0

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
            ),

Current Rangeselector

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?


Viewing all articles
Browse latest Browse all 201894

Trending Articles