Skip to content

Commit 873f476

Browse files
committed
if the trace type isn't found, provide some sensible defaults
1 parent 94aa22a commit 873f476

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/utils.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ add_boxed <- function(x) {
126126

127127
# plotlyjs properties that must _always_ be an array (even if length 1)
128128
get_boxed <- function(type = "scatter") {
129-
boxers[[type]]
129+
# if the trace type isn't found, provide some sensible defaults
130+
boxers[[type]] %||% c("x", "y", "z", "lat", "lon", "text", "locations")
130131
}
131132

132133
# if this ever needs updating see

0 commit comments

Comments
 (0)