timelyportfolio / sunburstR

R htmlwidget for interactive sunburst plots
http://timelyportfolio.github.io/sunburstR/articles/sunburst-2-0-0.html
Other
210 stars 123 forks source link

Added option to let percentage and counts display relative to parent element #76

Open Shians opened 6 years ago

Shians commented 6 years ago

(In reference to #75)

I'm not totally sure of the argument name, since it toggles both percent and count modes, but having a separate percentMode and countMode feels a bit clunky. Maybe can even incorporate this into the JS to toggle within the widget.

sequences <- read.csv(
  system.file("examples/visit-sequences.csv",package="sunburstR")
  ,header = FALSE
  ,stringsAsFactors = FALSE
)[1:100,]

Displaying total percentage:

sunburst_total

sunburst(
  sequences
  ,count = TRUE
)

Displaying percentage of parent:

sunburst_parent

sunburst(
  sequences
  ,count = TRUE
  ,percentMode = "parent"
)
timelyportfolio commented 6 years ago

@Shians thanks so much for the pull!!!! I am not sure how I missed it until now. I will review and submit feedback over the next couple of days.

PrMortimer commented 5 years ago

@Shians thanks so much for the pull!!!! I am not sure how I missed it until now. I will review and submit feedback over the next couple of days.

Hi! Any advancement on the reviewal/submission process so far ? Thanks !