html_dependency_d3format: HTML dependency for d3.format

Description Usage Value Examples

View source: R/widget.R

Description

This can be used to add a dependency in htmlwidget but also to load d3.format in shiny applications or RMarkdown

Usage

1

Value

an htmlDependency object.

Examples

 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)

dreamRs/d3.format documentation built on June 7, 2020, 5:15 a.m.