Kent Russel added some documentation of the changes that he made to the source sunburst-chart. The dist
version of the library points to the d3v3
version, which also pollutes the global namespace with d3
. This means that we will likely conflict with other htmlwidgets
that use other versions of d3
.
To resolve, he made commits
d3v4
versiones5
JavaScript since it is a very outdated. Change .babelrc
to target es5
and transpile Object.assign
.dist
version which we use in htmlwidgets/lib
These steps ended up being quite straightforward and minimal but took a little longer than Kent Russel expected. If we encouter again with an update of the source library, this should be quick and easy.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.