We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11ba0e0 commit fbd65b0Copy full SHA for fbd65b0
R/plotly_build.R
@@ -1026,6 +1026,11 @@ has_fill <- function(trace) {
1026
# ensure we've set a sensible trace defaults
1027
# based on the trace type
1028
coerce_attr_defaults <- function(trace, layout) {
1029
+ # if user has specified stroke, make sure the span
1030
+ # defaults to something greater than 0 (so they can see the stroke!)
1031
+ if (length(trace[["stroke"]]) && !is.default(trace[["stroke"]])) {
1032
+ trace$span <- trace[["span"]] %||% default(I(1))
1033
+ }
1034
if (trace[["type"]] %in% c("sunburst", "pie")) {
1035
# As of v1.46.1, paper_bgcolor defaults to '#fff' which
1036
# col2rgb() can't parse, but expands to '#ffffff'
0 commit comments