Hi,
add_annotations() seems to ignore the font properties(e.g. color, size).
library("plotly")
plot_ly(values=c(1,0), type="pie") %>%
add_annotations(text = "TEST",
font=list(color="white")
)

Here is my sessionInfo().
> sessionInfo()
R version 3.2.3 (2015-12-10)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=Japanese_Japan.932 LC_CTYPE=Japanese_Japan.932 LC_MONETARY=Japanese_Japan.932
[4] LC_NUMERIC=C LC_TIME=Japanese_Japan.932
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] plotly_4.5.2 ggplot2_2.1.0 httr_1.2.1
loaded via a namespace (and not attached):
[1] Rcpp_0.12.5 tidyr_0.6.0 viridisLite_0.1.3 digest_0.6.10 dplyr_0.5.0
[6] assertthat_0.1 grid_3.2.3 R6_2.1.2 plyr_1.8.4 jsonlite_1.1
[11] gtable_0.2.0 DBI_0.4-1 magrittr_1.5 scales_0.4.0 lazyeval_0.2.0
[16] tools_3.2.3 htmlwidgets_0.7 purrr_0.2.2 munsell_0.4.3 yaml_2.1.13
[21] rsconnect_0.4.3 base64enc_0.1-3 colorspace_1.2-6 htmltools_0.3.5 knitr_1.14
[26] tibble_1.2
Thanks.
Hi,
add_annotations() seems to ignore the font properties(e.g. color, size).
Here is my sessionInfo().
Thanks.