bb_pie | R Documentation |
Pie property for a Billboard.js chart
bb_pie(bb, ...)
bb |
A |
... |
See https://naver.github.io/billboard.js/release/latest/doc/Options.html#.pie |
A billboard
htmlwidget
object.
billboarder() %>%
bb_piechart(data = table(mtcars$cyl)) %>%
bb_pie(label = list(
ratio = 0.5,
format = htmlwidgets::JS("function(value) {return d3.format('$')(value);}")
),
expand = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.