Skip to content

Commit e690ae9

Browse files
committed
Add isosurface to non-tidy traces
1 parent 93c03ae commit e690ae9

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
@@ -102,10 +102,11 @@ getLevels <- function(x) {
102102
tryNULL <- function(expr) tryCatch(expr, error = function(e) NULL)
103103

104104
# Don't attempt to do "tidy" data training on these trace types
105+
# Note that non-tidy traces expect/anticipate data_array's of varying lengths
105106
is_tidy <- function(trace) {
106107
type <- trace[["type"]] %||% "scatter"
107108
!type %in% c(
108-
"mesh3d", "heatmap", "histogram2d",
109+
"mesh3d", "heatmap", "histogram2d", "isosurface",
109110
"histogram2dcontour", "contour", "surface"
110111
)
111112
}

0 commit comments

Comments
 (0)