Tooltip property for a Billboard.js chart
Arguments
- bb
A
billboard
htmlwidget
object.- ...
See https://naver.github.io/billboard.js/release/latest/doc/Options.html#.tooltip
Examples
# 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;}")
)
)