Description Usage Arguments Details Examples
Highcharts is very flexible so you can modify every element of the chart. There are some exiting themes so you can apply style to charts with few lines of code.
1 |
... |
A list of named parameters. |
More examples and details in https://www.highcharts.com/docs/chart-design-and-style/themes.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | hc <- highcharts_demo()
hc
thm <- hc_theme(
colors = c("red", "green", "blue"),
chart = list(
backgroundColor = "#15C0DE"
),
title = list(
style = list(
color = "#333333",
fontFamily = "Erica One"
)
),
subtitle = list(
style = list(
color = "#666666",
fontFamily = "Shadows Into Light"
)
),
legend = list(
itemStyle = list(
fontFamily = "Tangerine",
color = "black"
),
itemHoverStyle = list(
color = "gray"
)
)
)
hc_add_theme(hc, thm)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.