Description Usage Arguments Examples
View source: R/highcharts-api.R
The chart's caption, which will render below the chart and will be part of exported charts. The caption can be updated after chart initialization through the Chart.update or Chart.caption.update methods.
1 | hc_caption(hc, ...)
|
hc |
A |
... |
Arguments defined in https://api.highcharts.com/highcharts/caption. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | highchart() %>%
hc_title(text = "Chart with a caption") %>%
hc_subtitle(text = "This is the subtitle") %>%
hc_xAxis(categories = c("Apples", "Pears", "Banana", "Orange")) %>%
hc_add_series(
data = c(1, 4, 3, 5),
type = "column",
name = "Fruits"
) %>%
hc_caption(
text = "<b>The caption renders in the bottom, and is part of the exported
chart.</b><br><em>Lorem ipsum dolor sit amet, consectetur adipiscing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est
laborum.</em>'"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.