Learn R Programming

billboarder (version 0.5.2)

bb_pie: Pie property for a Billboard.js chart

Description

Pie property for a Billboard.js chart

Usage

bb_pie(bb, ...)

Value

A `billboard` `htmlwidget` object.

Arguments

bb

A `billboard` `htmlwidget` object.

...

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

Examples

Run this code
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