Description Usage Value Examples
This can be used to add a dependency in htmlwidget
but also to load d3.format in shiny applications or RMarkdown
1 |
an htmlDependency
object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # This will return an HTML dependency
html_dependency_d3format()
# Using it in shiny or markdown will allow
# to use d3.format JavaScript API
## Not run:
# when autoring htmlwidgets, you can
# add the dependency in createWidget:
createWidget(
name = "mywidget",
x = x,
dependencies = list(
html_dependency_d3format()
)
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.