We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d21c4a6 commit 0bdf044Copy full SHA for 0bdf044
R/plotly_build.R
@@ -1006,5 +1006,12 @@ supplyUserPalette <- function(default, user) {
1006
# helper functions
1007
array_ok <- function(attr) isTRUE(tryNULL(attr$arrayOk))
1008
has_fill <- function(trace) {
1009
- has_attr(trace$type %||% "scatter", "fillcolor")
+ trace_type <- trace[["type"]] %||% "scatter"
1010
+ # if trace type has fillcolor, but no fill attribute, then fill is always relevant
1011
+ has_fillcolor <- has_attr(trace_type, "fillcolor")
1012
+ has_fill <- has_attr(trace_type, "fill")
1013
+ if (has_fillcolor && !has_fill) return(TRUE)
1014
+ fill <- trace[["fill"]] %||% "none"
1015
+ if (has_fillcolor && isTRUE(fill != "none")) return(TRUE)
1016
+ FALSE
1017
}
0 commit comments