We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06f7654 commit c4147afCopy full SHA for c4147af
R/plotly_build.R
@@ -43,9 +43,14 @@ plotly_build.plotly <- function(p) {
43
44
# if an annotation attribute is an array, expand into multiple annotations
45
nAnnotations <- max(lengths(x$annotations) %||% 0)
46
+ # font is the only list object, so store it, and attach after transposing
47
+ font <- x$annotations[["font"]]
48
x$annotations <- purrr::transpose(lapply(x$annotations, function(x) {
49
as.list(rep(x, length.out = nAnnotations))
50
}))
51
+ for (i in seq_len(nAnnotations)) {
52
+ x$annotations[[i]][["font"]] <- font
53
+ }
54
55
x[lengths(x) > 0]
56
0 commit comments