Skip to contents

Zoom property for a Billboard.js chart

Usage

bb_zoom(bb, ...)

Arguments

bb

A `billboard` `htmlwidget` object.

...

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

Value

A `billboard` `htmlwidget` object.

Examples

# data
data("equilibre_mensuel")

# line chart
billboarder() %>%
  bb_linechart(
    data = equilibre_mensuel[, c("date", "consommation", "production")],
    type = "spline"
  ) %>%
  bb_x_axis(tick = list(format = "%Y-%m", fit = FALSE)) %>%
  bb_zoom(enabled = TRUE)