Make interactive 'd3.js' sequence sunburst diagrams in R with the convenience and infrastructure of an 'htmlwidget'.
Note: this is a working htmlwidget
first released in the Building Widgets htmlwidget-a-week project. sunburstR
has already seen extensive use in many projects across multiple domains. If you have any interest in collaborating with me on this project or applying sunburstR
, please let me know (see Time Isn't Money).
Easily make these interactive d3.js
sequence sunburst charts in R
modeled on this example from Kerry Rodden. For more details, see this post Week 26 | sunburstR from the BuildingWidgets blog.
See the examples.
These are still far from feature-complete. I would love your input, feedback, and comments.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
add sumNodes
argument to correctly handle pre-summed trees, like treemap::treemap
to not double count the aggregate (see issue)
add sund2b()
htmlwidget for a d2b sunburst chart
allow turning off the legend with argument legend = FALSE
(see issue)
fix bug to not duplicate svg for breadcrumbs on resize or re-render
csv_to_hier()
with delimiter argument and smart convert for root levelsee sunburstR v1 Github Project
d3v4
; thanks @cjyetman (see issue 36)csvdata
and jsondata
deprecated in favor of single data argument (see issue 43)dplyr
to IMPORTSsee treemap example
valueField
argument to sunburst()
to allow fields in json
to be something other than "size"
commitfunction
to colors
for
advanced color customization or to use a color field from data
as the color fill commitd3r
for d3.js
dependenciesadd_shiny
and provide examples commit and commit