hc_tooltip: Tooltip options for highcharter objects

Description Usage Arguments Examples

View source: R/highcharts-api.R

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 defined in https://api.highcharts.com/highcharts/tooltip.

sort

Logical value to implement sort according this.point https://stackoverflow.com/a/16954666/829971.

table

Logical value to implement table in tooltip: https://stackoverflow.com/a/22327749/829971.

Examples

1
2
3
4
5
6
7
8
9
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
  )

highcharter documentation built on Jan. 3, 2022, 5:08 p.m.