Last active
July 26, 2018 11:05
-
-
Save pvictor/6f8b56ab27a92e9f4665bf0ae01696a1 to your computer and use it in GitHub Desktop.
Title font size
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(billboarder) | |
dat <- data.frame( | |
lib = c("A", "B", "C"), | |
value = c(34, 54, 62) | |
) | |
# Donut title | |
billboarder() %>% | |
bb_donutchart(dat) %>% | |
bb_donut(title = "My title") %>% | |
bb_add_style(".bb-chart-arcs-title" = "font-size: 80px; fill: red;") | |
# Main title | |
billboarder() %>% | |
bb_donutchart(dat) %>% | |
bb_donut(title = "Inner title") %>% | |
bb_title( | |
text = "Main title", | |
padding = list(top = 20, right = 10, bottom = 10, left = 10), | |
position = "left" | |
) %>% | |
bb_add_style( | |
".bb-chart-arcs-title" = "font-size: 36px; fill: red;", | |
".bb-title" = "font-size: 42px; fill: green;" | |
) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment