bb_gauge: Gauge property for a Billboard.js chart

View source: R/bb_utils.R

bb_gaugeR Documentation

Gauge property for a Billboard.js chart

Description

Gauge property for a Billboard.js chart

Usage

bb_gauge(bb, ...)

Arguments

bb

A billboard htmlwidget object.

...

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

Value

A billboard htmlwidget object.

Examples

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;}")))
           

dreamRs/billboarder documentation built on Feb. 26, 2024, 1:17 p.m.