Learn R Programming

vchartr (version 0.1.4)

v_specs_tooltip: Set tooltip options

Description

Set tooltip options

Usage

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

Value

A vchart()

htmlwidget object.

Arguments

vc

An htmlwidget created with vchart().

...

Options for the tooltip, see examples or online documentation.

.reset

Reset previous tooltip configuration before updating.

Examples

Run this code
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
  )

Run the code above in your browser using DataLab