Skip to content

Commit

Permalink
Test discrete-ness of fill after statistics have been calculated (#2066)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpsievert authored Nov 2, 2021
1 parent 555a443 commit 58bf7b7
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 58bf7b7

Please sign in to comment.