bb_pie {billboarder}R Documentation

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.

...

See https://naver.github.io/billboard.js/release/latest/doc/Options.html#.pie

Value

A billboard htmlwidget object.

Examples

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)
  

[Package billboarder version 0.4.1 Index]