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

d3 partition: ability to choose different "value" size variable #180

Open
aaron-613 opened this issue May 19, 2021 · 0 comments
Open

d3 partition: ability to choose different "value" size variable #180

aaron-613 opened this issue May 19, 2021 · 0 comments

Comments

@aaron-613
Copy link

I have a Sunburst where each node has multiple values associated with it (e.g. packets, bytes, leaves). The goal is to be able to tween between different sized arcs for the different types of data. Using custom functions and hierarchy.eachAfter() I can build summed versions of each of these values for the whole tree, and can then sort the hierarchy by whichever I want. But when running partition it requires Node.value to be populated. This means having an extra variable on each Node. Rather, it would be nice if I could somehow say: use d.data.bytesCount varable instead.

I guess, the ability to pass a custom function to a new value() method for partition, where the default is to return d.value but can be modified if required.

Thank you for your consideration!

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

No branches or pull requests

1 participant