bb_tooltip | R Documentation |
Tooltip property for a Billboard.js chart
bb_tooltip(bb, ...)
bb |
A |
... |
See https://naver.github.io/billboard.js/release/latest/doc/Options.html#.tooltip |
A billboard
htmlwidget
object.
# Format tooltip
billboarder() %>%
bb_scatterplot(data = iris, x = "Sepal.Length", y = "Sepal.Width", group = "Species") %>%
bb_tooltip(
format = list(
# skip the title in tooltip
title = htmlwidgets::JS("function() {return undefined;}"),
name = htmlwidgets::JS("function(name, ratio, id, index) {return '';}"),
value = htmlwidgets::JS("function(value, ratio, id, index) {return id;}")
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.