v_specs_tooltip | R Documentation |
Set tooltip options
v_specs_tooltip(vc, ..., .reset = FALSE)
vc |
An htmlwidget created with |
... |
Options for the tooltip, see examples or online documentation. |
.reset |
Reset previous tooltip configuration before updating. |
A vchart()
htmlwidget
object.
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
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.