.AdjustValue <- function(value, type) {
switch(tolower(type),
"bps" = value * 1E-4,
"percentage" = value * 1E-2,
"value" = value,
stop("unknown type of value"))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.