Adding tooltip options to highchart objects

Share:

Description

Options for the tooltip that appears when the user hovers over a series or point.

Usage

1

Arguments

hc

A highchart htmlwidget object.

...

Arguments are defined in http://api.highcharts.com/highcharts#tooltip.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(citytemp)

highchart() %>% 
  hc_xAxis(categories = citytemp$month) %>% 
  hc_add_series(name = "Tokyo", data = citytemp$tokyo) %>% 
  hc_add_series(name = "London", data = citytemp$london) %>% 
  hc_tooltip(crosshairs = TRUE, backgroundColor = "gray",
             headerFormat = "This is a custom header<br>",
             shared = TRUE, borderWidth = 5)
             

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.