Skip to content

replace dc.utils.toHierarchy with d3.stratify #1429

Open
@gordonwoodhull

Description

@gordonwoodhull

As noted by @kum-deepak in #1388:

Can https://github.com/d3/d3-hierarchy/blob/master/README.md#stratify replace dc.utils.toHierarchy?

Yes. It is probably more robust. It looks like the main differences are that it doesn't provide the path as one of the members, and it uses name instead of key. I'm sure dc.sunburstChart could adapt to these changes.

The more we use d3 utilities instead of reinventing them, the better off we are, for robustness and interpretability of the code.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions