Skip to content

Separate label styles for root and children. #155

Open
@alex0112

Description

@alex0112

Are you reporting a bug, or opening a feature request?

Feature request

What is the actual behavior/output?

Root node labels are styled/positioned the same as all other labels.

What is the behavior/output you expect?

I would like it if I could provide separate styling in for the root of the tree and the child nodes. (Specifically on the label positioning)

I would like to avoid this:
screen shot 2018-11-07 at 12 06 04 pm

See how the label for the root gets wiped out by the branches?

What version of react-d3-tree are you using?

1.11.0

Totally willing to work on the PR once school gets a little less crazy for me.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions