Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow option to show as percentage of parent? #75

Open
Shians opened this issue Jul 20, 2018 · 0 comments
Open

Allow option to show as percentage of parent? #75

Shians opened this issue Jul 20, 2018 · 0 comments

Comments

@Shians
Copy link

Shians commented Jul 20, 2018

I would like to suggest a percentMode options that has options c("total", "parent"). Under "total" the percentage will be as it currently is, but under "parent" it should show the percentage relative to the parent.

I've only made simple use of this package, but as far as I can tell the structure is fully nested, so this should be sensible. From what I can tell of the code the percentages are generated on mouse-over here. But if this percentage can't change then it probably makes sense to pre-compute this and just store it in the data element to be pulled out using d.percentage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant