Skip to contents

Sets chart theme tokens using CSS custom properties

Usage

setTheme(
  myIO,
  text_color = NULL,
  grid_color = NULL,
  bg = NULL,
  font = NULL,
  ...
)

Arguments

myIO

an htmlwidget object created by the myIO() function

text_color

text and label color

grid_color

grid line color

bg

background color

font

font family

...

additional CSS custom property overrides without the `chart-` prefix

Value

the same myIO object

Examples

myIO() |>
  setTheme(text_color = "#222222", grid_color = "#d9d9d9")