Alias for htmlwidgets::JS(). Only the function-valued gsm.viz slots are
revived in the browser: tooltip$formatter, callbacks$onClick,
callbacks$onHover, callbacks$onSelect, the two annotation label
formatters, and scales$x$order. Anywhere else, bars() errors. Prefer the
JSON-safe alternatives (tooltip$format, label format strings) where they
suffice.
Value
A JS_EVAL string, as returned by htmlwidgets::JS().
Details
A function-valued scales$x$order is a facet_bars() feature: facetBars
calls it once per facet as order(facetValue, facetData) to order that
facet's categories. Plain bars() hands the slot to gsm.viz, which expects
an array there and has no function branch.