| hd_theme | R Documentation |
Constructs a highcharter theme by merging a named base theme with colour
and font overrides from the current hd_set_theme() session defaults and
any per-figure opts.
hd_theme(name = NULL, colors = NULL, ...)
name |
Character or |
colors |
Character vector or |
... |
Named arguments forwarded to |
Called automatically inside the highcharter engine; useful when you want to apply a theme to a highchart built outside highdir.
A highcharter theme object (hc_theme).
if(interactive()) {
t <- hd_theme("darkunica")
highcharter::highchart() |> highcharter::hc_add_theme(t)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.