powered by
Sets chart theme tokens using CSS custom properties
setTheme( myIO, text_color = NULL, grid_color = NULL, bg = NULL, font = NULL, mode = NULL, preset = NULL, overrides = list(), ... )
A modified myIO htmlwidget object with updated theme configuration.
myIO
an htmlwidget object created by the myIO() function
text and label color
grid line color
background color
font family
Character or NULL. Theme mode: "light", "dark", or "auto". Default NULL (no mode, manual CSS vars only).
Character or NULL. Named preset (reserved for future use). Default NULL.
Named list of CSS custom property overrides (e.g., list("--chart-tooltip-bg" = "#222")).
list("--chart-tooltip-bg" = "#222")
additional CSS custom property overrides with `--` prefix
myIO() |> setTheme(text_color = "#222222", grid_color = "#d9d9d9") myIO() |> setTheme(mode = "dark", bg = "#1a1a2e")
Run the code above in your browser using DataLab