Thin htmlwidget over gsmViz.default.bars. spec maps 1:1 to the
JS spec (see bars_spec()); gsm.viz's documentation is the source of
truth for its keys.
Usage
bars(
data,
spec,
metadata = list(),
width = NULL,
height = NULL,
elementId = NULL,
minHeight = 500,
bDebug = FALSE
)Arguments
- data
data.frameLong rows; one row per observation (stat = "count") or one row per category/segment (stat = "identity").- spec
listChart specification, typically frombars_spec().- metadata
listNamed list of report keys (e.g.chartId) echoed in event payloads. Not a data.frame — event consumers expect a JSON object.- width, height, elementId
Standard htmlwidgets arguments.
- minHeight
numericMinimum widget height in pixels; applied as a CSS floor sotheme$dynamicSizingcannot collapse small charts. Default 500.- bDebug
logicalLog the payload to the browser console.