Thin htmlwidget over gsmViz.default.facetBars — one sub-chart per
unique value of the facet field, in a shared grid with linked hover.
Usage
facet_bars(
data,
spec,
facet,
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().- facet
listFacet configuration fromfacet_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.