Skip to content

Commit c207e70

Browse files
committed
areas/ribbons should hoveron points
1 parent b5e0eb2 commit c207e70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/add.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ add_ribbons <- function(p, x = NULL, ymin = NULL, ymax = NULL, ...,
251251
add_trace_classed(
252252
p, class = c("plotly_ribbon", "plotly_polygon"),
253253
x = x, ymin = ymin, ymax = ymax, type = "scatter", mode = "lines",
254-
fill = "toself", ..., data = data, inherit = inherit
254+
hoveron = "points", fill = "toself", ..., data = data, inherit = inherit
255255
)
256256
}
257257

@@ -275,7 +275,7 @@ add_area <- function(p, x = NULL, ymax = NULL, ...,
275275
add_trace_classed(
276276
p, class = c("plotly_area", "plotly_ribbon", "plotly_polygon"),
277277
x = x, ymax = ymax,
278-
type = "scatter", fill = "toself", mode = "lines",
278+
type = "scatter", fill = "toself", mode = "lines", hoveron = "points",
279279
..., data = data, inherit = inherit
280280
)
281281
}

0 commit comments

Comments
 (0)