sund2bTooltip | R Documentation |
Advanced Customization of 'd2b' Tooltip
sund2bTooltip(at = NULL, followMouse = NULL, html = NULL, my = NULL)
at |
|
followMouse |
|
html |
|
my |
|
list
if(interactive()){ library(sunburstR) # use a sample of the sequences csv data sequences <- read.csv( system.file("examples/visit-sequences.csv",package="sunburstR") ,header = FALSE ,stringsAsFactors = FALSE )[1:200,] # change the tooltip sund2b( sequences, tooltip = sund2bTooltip( html = htmlwidgets::JS(" function(nodedata, size, percent) { return '<span style=\"font-weight: bold;\">' + nodedata.name + '</span>' + ' ' + size } ") ) ) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.