Skip to content

Commit cd93ab3

Browse files
committed
fix yanchor of legend title
1 parent 2e3f20d commit cd93ab3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/ggplotly.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ gg2list <- function(p, width = NULL, height = NULL, tooltip = "all",
662662
y = gglayout$legend$y %||% 1,
663663
theme$legend.title,
664664
xanchor = "left",
665-
yanchor = "top",
665+
yanchor = "bottom",
666666
# just so the R client knows this is a title
667667
legendTitle = TRUE
668668
)

0 commit comments

Comments
 (0)