Skip to contents

The padding of the chart element.

Usage

bb_padding(bb, ...)

Arguments

bb

A [billboarder()] `htmlwidget` object or a [billboarderProxy()] `htmlwidget` object.

...

See <https://naver.github.io/billboard.js/release/latest/doc/Options.html#.padding> for possible options.

Value

A `billboard` `htmlwidget` object.

Examples

# Add padding around the chart
billboarder() %>%
  bb_barchart(data = table(sample(letters[1:5], 100, TRUE))) %>%
  bb_padding(top = 100, right = 100, bottom = 100, left = 100)