Skip to content

Commit 65646d8

Browse files
committed
Make sure layout-specific shapes go underneath traces
1 parent 01f2cbb commit 65646d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/ggplotly.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1397,7 +1397,8 @@ rect2shape <- function(rekt = ggplot2::element_rect()) {
13971397
linetype = lty2dash(rekt$linetype)
13981398
),
13991399
yref = "paper",
1400-
xref = "paper"
1400+
xref = "paper",
1401+
layer = "below"
14011402
)
14021403
}
14031404

0 commit comments

Comments
 (0)