Skip to content

Commit

Permalink
Follow up to #2063: test discrete-ness of fill after statistics have …
Browse files Browse the repository at this point in the history
…been calculated
  • Loading branch information
cpsievert committed Nov 2, 2021
1 parent 555a443 commit 6ea29ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/layers2traces.R
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ to_basic.GeomRasterAnn <- function(data, prestats_data, layout, params, p, ...)
#' @export
to_basic.GeomTile <- function(data, prestats_data, layout, params, p, ...) {
# geom2trace.GeomTile is a heatmap, which requires continuous fill
if (is.discrete(prestats_data$fill %||% NA_character_)) {
if (is.discrete(data$fill_plotlyDomain %||% NA_character_)) {
data <- prefix_class(data, "GeomRect")
to_basic(data, prestats_data, layout, params, p)
} else {
Expand Down

0 comments on commit 6ea29ef

Please sign in to comment.