Skip to content

Commit 36c4bcc

Browse files
restore d2b example
1 parent fd6756f commit 36c4bcc

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

inst/examples/vue_d2b_examples.R

+9-2
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,18 @@ hier_json <- hier_dat %>%
1717
rename(size = vSize) %>%
1818
d3_nest(value_cols = c("size", "color"))
1919

20+
21+
d2b_dep <- htmltools::htmlDependency(
22+
name = "d2b",
23+
version = "0.0.24",
24+
src = c(href = "https://unpkg.com/d2b@0.0.24/build/"),
25+
script = "d2b.min.js"
26+
)
27+
2028
browsable(tagList(
2129
html_dependency_vue(),
2230
d3r::d3_dep_v4(),
23-
tags$script(src = "https://unpkg.com/d3"),
24-
tags$script(src = "https://rawgit.com/d2bjs/d2b/master/build/d2b.js"),
31+
d2b_dep,
2532
tags$div(
2633
id = "app",
2734
style = "height:400px",

0 commit comments

Comments
 (0)