Learn R Programming

billboarder (version 0.2.4)

bb_zoom: Zoom property for a Billboard.js chart

Description

Zoom property for a Billboard.js chart

Usage

bb_zoom(bb, ...)

Arguments

bb

A billboard htmlwidget object.

Value

A billboard htmlwidget object.

Examples

Run this code
# NOT RUN {
# 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