Skip to contents

Set tooltip options

Usage

v_specs_tooltip(vc, ..., .reset = FALSE)

Arguments

vc

An htmlwidget created with vchart().

...

Options for the tooltip, see examples or online documentation.

.reset

Reset previous tooltip configuration before updating.

Value

A vchart() htmlwidget object.

Examples

library(vchartr)
data("mpg", package = "ggplot2")

vchart(table(Class = mpg$class, Year = mpg$year)) %>%
  v_bar(aes(Class, Freq, fill = Year)) %>%
  v_specs_tooltip(
    visible = FALSE
  )