Skip to content

Commit 32a5a3e

Browse files
committed
fix the definition of has_fill(). Closes #1292, closes #1367
1 parent 05ec84b commit 32a5a3e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/plotly_build.R

+3-1
Original file line numberDiff line numberDiff line change
@@ -1005,4 +1005,6 @@ supplyUserPalette <- function(default, user) {
10051005

10061006
# helper functions
10071007
array_ok <- function(attr) isTRUE(tryNULL(attr$arrayOk))
1008-
has_fill <- function(trace) isTRUE(trace$fill %in% c('tozeroy', 'tozerox', 'tonexty', 'tonextx', 'toself', 'tonext'))
1008+
has_fill <- function(trace) {
1009+
has_attr(trace$type %||% "scatter", "fillcolor")
1010+
}

0 commit comments

Comments
 (0)