View source: R/highcharts-api.R
hc_tooltip | R Documentation |
Options for the tooltip that appears when the user hovers over a series or point.
hc_tooltip(hc, ..., sort = FALSE, table = FALSE)
hc |
A |
... |
Arguments defined in https://api.highcharts.com/highcharts/tooltip. |
sort |
Logical value to implement sort according |
table |
Logical value to implement table in tooltip: http://stackoverflow.com/a/22327749/829971. |
highchart() |>
hc_add_series(data = sample(1:12)) |>
hc_add_series(data = sample(1:12) + 10) |>
hc_tooltip(
crosshairs = TRUE,
borderWidth = 5,
sort = TRUE,
table = TRUE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.