Skip to contents

Treemap property for a Billboard.js chart

Usage

bb_treemap(bb, ...)

Arguments

bb

A `billboard` `htmlwidget` object.

...

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

Value

A `billboard` `htmlwidget` object.

Examples

library("billboarder")
data("mpg", package = "ggplot2")

billboarder() %>%
  bb_treemapchart(mpg[, 1]) %>%
  bb_treemap(label = list(show = TRUE, threshold = 0.03)) %>%
  bb_data(
    labels = list(colors = "#FFF")
  )