Learn R Programming

billboarder (version 0.5.2)

bb_gauge: Gauge property for a Billboard.js chart

Description

Gauge property for a Billboard.js chart

Usage

bb_gauge(bb, ...)

Value

A `billboard` `htmlwidget` object.

Arguments

bb

A `billboard` `htmlwidget` object.

...

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

Examples

Run this code
billboarder() %>%
  bb_gaugechart(value = 50) %>%
  bb_gauge(
    min = 0, max = 200, units = "km/h", width = 10,
    label = list(format = htmlwidgets::JS("function(value) {return value;}"))
  )

Run the code above in your browser using DataLab