Learn R Programming

billboarder (version 0.5.2)

bb_zoom: Zoom property for a Billboard.js chart

Description

Zoom property for a Billboard.js chart

Usage

bb_zoom(bb, ...)

Value

A `billboard` `htmlwidget` object.

Arguments

bb

A `billboard` `htmlwidget` object.

...

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

Examples

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

Run the code above in your browser using DataLab