Learn R Programming

billboarder (version 0.2.4)

bb_pie: Pie property for a Billboard.js chart

Description

Pie property for a Billboard.js chart

Usage

bb_pie(bb, ...)

Arguments

bb

A billboard htmlwidget object.

Value

A billboard htmlwidget object.

Examples

Run this code
# NOT RUN {
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)
  
# }

Run the code above in your browser using DataLab