-
Notifications
You must be signed in to change notification settings - Fork 622
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3D markers not shown in RStudio #1055
Comments
@bcdunbar can you replicate this issue on your system? If so, can you show me the list of (you can inspect element in the viewer pane of RStudio to do so) |
@bcdunbar does this fix the problem? library(plotly)
library(htmlwidgets)
p <- plot_ly(x =1:10, y = 10:1, z = 1:10, type = 'scatter3d', mode = 'markers')
saveWidget(p, "index.html", selfcontained = FALSE)
# move <script plotly.js> from <head> to <body>
html <- readLines("index.html")
idx <- grep("plotly-latest", html)
plotlyjs <- html[[idx]]
html[[idx]] <- ""
bod <- grep("<body", html)
new_html <- c(html[seq(1, bod)], plotlyjs, html[seq(bod+1, length(html))])
writeLines(new_html, "index.html")
# should open in viewer
servr::httd() |
@cpsievert it doesn't. Still no markers visible in the viewer and produces the same error in the console. |
Should be fixed via 90a5a0a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
from community discussion https://community.plot.ly/t/no-markers-on-3d-plots/4125/5
Unique to RStudio Viewer on Windows. External browsers (IE, Edge) work as expected.
Error:
The text was updated successfully, but these errors were encountered: