Skip to content

Commit 692840b

Browse files
committed
don't inherit colorbar attributes from existing traces when using a color map
1 parent 92c1672 commit 692840b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

R/plotly_build.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -778,8 +778,7 @@ map_color <- function(traces, stroke = FALSE, title = "", colorway, na.color = "
778778
ncol = 2
779779
)
780780
colorObj <- list(
781-
colorbar = Reduce(modify_list, lapply(traces, function(x) x$marker[["colorbar"]])) %||%
782-
lapply(list(title = as.character(title), ticklen = 2), default),
781+
colorbar = lapply(list(title = as.character(title), ticklen = 2), default),
783782
cmin = default(rng[1]),
784783
cmax = default(rng[2]),
785784
colorscale = default(colorScale),

0 commit comments

Comments
 (0)