When called interactively, renders the component in the IDE viewer panel. Otherwise, falls back to standard shiny.tag printing (raw HTML text).
Usage
# S3 method for class 'muiCharts'
print(x, browse = interactive(), ...)Examples
chart <- BarChart(
series = list(list(data = c(1, 2, 3))),
height = 300
)
# browse = FALSE prints the underlying HTML instead of opening the viewer.
print(chart, browse = FALSE)
#> <div class="react-container" data-react-id="cvpeammhtuweaikfkbkz">
#> <script class="react-data" type="application/json">{"type":"element","module":"@mui/x-charts","name":"BarChart","props":{"type":"raw","value":{"series":[{"data":[1,2,3]}],"height":300}}}</script>
#> <script>jsmodule['@/shiny.react'].findAndRenderReactData('cvpeammhtuweaikfkbkz')</script>
#> </div>