Skip to content

Commit

Permalink
add rootLabel argument for sund2b #96
Browse files Browse the repository at this point in the history
  • Loading branch information
timelyportfolio committed Nov 2, 2019
1 parent 9d658d9 commit 9964832
Show file tree
Hide file tree
Showing 23 changed files with 11,088 additions and 40 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
@@ -1,6 +1,6 @@
Package: sunburstR
Type: Package
Title: 'Htmlwidget' for 'Kerry Rodden' 'd3.js' Sequence and 'd2b' Sunburst
Title: Sunburst 'Htmlwidget'
Version: 2.1.3
Date: 2019-10-07
Authors@R: c(
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
@@ -1,6 +1,7 @@
# sunburstR 2.1.3

* add breadcrumb customization to d2b; (see [issue 92](https://github.com/timelyportfolio/sunburstR/issues/92))
* add argument to allow user to change root label (see [issue 96](https://github.com/timelyportfolio/sunburstR/issues/96))

# sunburstR 2.1.2

Expand Down
5 changes: 4 additions & 1 deletion R/d2b.R
Expand Up @@ -17,6 +17,7 @@
#' function \code{\link{sund2bTooltip}} for more information.
#' @param breadcrumbs \code{list} of options for customizing the breadcrumb. See the helper
#' function \code{\link{sund2bBreadcrumb}} for more information.
#' @param rootLabel \code{character} to label root node something other than 'root'.
#' @param height,width height and width of sunburst htmlwidget containing div
#' specified in any valid \code{CSS} size unit.
#' @param elementId string id as a valid \code{CSS} element id.
Expand All @@ -32,6 +33,7 @@ sund2b <- function(
valueField = "size",
tooltip = NULL,
breadcrumbs = NULL,
rootLabel = NULL,
width = NULL, height = NULL, elementId = NULL
) {

Expand Down Expand Up @@ -71,7 +73,8 @@ sund2b <- function(
),
options = list(
colors = colors,
valueField = valueField
valueField = valueField,
rootLabel = rootLabel
)
)

Expand Down
2 changes: 1 addition & 1 deletion docs/CONDUCT.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/LICENSE-text.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions docs/articles/sunburst-2-0-0.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9964832

Please sign in to comment.