Skip to content

Commit a1f3a02

Browse files
committed
trace type derives from data
1 parent e7fe048 commit a1f3a02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ verify_scattergl_platform <- function(p) {
834834
if (!identical(.Platform$OS.type, "windows")) return(p)
835835
if (!is_rstudio()) return(p)
836836

837-
types <- vapply(p, function(x) x[["type"]] %||% "scatter", character(1))
837+
types <- vapply(p$x$data, function(x) x[["type"]] %||% "scatter", character(1))
838838
if ("scattergl" %in% types) {
839839
warning(
840840
"'scattergl' trace types don't currently render in RStudio on Windows",

0 commit comments

Comments
 (0)