You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The plots in the background of range slider are missing when toWebGL() is used. Following the example from https://plot.ly/r/range-slider/:
library(plotly)
library(quantmod)
# Download some data
getSymbols(Symbols= c("AAPL", "MSFT"))
ds<-data.frame(Date= index(AAPL), AAPL[,6], MSFT[,6])
p<- plot_ly(ds, x=~Date) %>%
add_lines(y=~AAPL.Adjusted, name="Apple") %>%
add_lines(y=~MSFT.Adjusted, name="Microsoft") %>%
layout(
title="Stock Prices",
xaxis=list(
rangeselector=list(
buttons=list(
list(
count=3,
label="3 mo",
step="month",
stepmode="backward"),
list(
count=6,
label="6 mo",
step="month",
stepmode="backward"),
list(
count=1,
label="1 yr",
step="year",
stepmode="backward"),
list(
count=1,
label="YTD",
step="year",
stepmode="todate"),
list(step="all"))),
rangeslider=list(type="date")),
yaxis=list(title="Price"))
# this is ok, there are lines in the background of range sliderp# there are no lines in the background of range sliderp %>% toWebGL()
The text was updated successfully, but these errors were encountered:
The plots in the background of range slider are missing when toWebGL() is used. Following the example from https://plot.ly/r/range-slider/:
The text was updated successfully, but these errors were encountered: