Description Usage Arguments Examples
Add tooltips to pie segments
1 2 3 4 5 6 | pie.tooltips(pier, enabled = TRUE, type = "placeholder",
string = "{label}: {value}, {percentage}%",
placeholderParser = NULL, fadeInSpeed = 250,
backgroundColor = "#000000", backgroundOpacity = 0.5,
color = "#efefef", borderRadius = 2, font = "arial",
fontSize = 10, padding = 4)
|
pier |
object |
enabled |
booleen; default = TRUE |
type |
character type of tooltip used, must be 'placeholder' or 'caption'; default = 'placeholder'. For description see [d3pie docs](http://d3pie.org/#docs-tooltips) |
string |
character gives methed to structure content and format of tootip; default = "{label}: {value}, {percentage}%" |
placeholderParser |
NOT YET FUNCTIONAL |
fadeInSpeed |
integer value milliseconds; default = 250 |
backgroundColor |
character colour name or hex; default = '#000000', |
backgroundOpacity |
numeric proportion must be between 0 and 1; default = 0.5, |
color |
character colour name or hex; default = '#efefef', |
borderRadius |
integer pixels; default = 2, |
font |
character name; default = "arial", |
fontSize |
integer pixels; default = 10, |
padding |
integer pixels; default = 4 |
1 2 3 4 5 6 7 8 | ## Not run:
data.frame(value = c(40, 20, 30),
label = c('red', 'green', 'blue'),
color = c('red', 'green', 'blue')) %>%
pier() %>%
pie.tooltips()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.