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

Adding labels to clusters #156

Merged
merged 1 commit into from
Apr 28, 2015
Merged

Conversation

courtneymiller2010
Copy link
Contributor

Adding labels to clusters with option of 'top' or 'bottom' (defaults to middle) location using clusterLabelPos as an option for setNode. Should add link to cluster.html from the demo directory to the wiki. Will need to do a make dist to get the cluster.html working. This is in support of issue #140.

…to middle) location using clusterLabelPos as an option for setNode.
@cpettitt
Copy link
Collaborator

Looks good! It would be possible to get the edges to route around the cluster label by doing some of this in dagre - e.g. adding a dummy node to the cluster at the right rank with the size of the label.

cpettitt added a commit that referenced this pull request Apr 28, 2015
@cpettitt cpettitt merged commit 8366c73 into dagrejs:master Apr 28, 2015
@chruetli
Copy link

chruetli commented Jul 2, 2015

Looking at the "Clusters" demo (http://cpettitt.github.io/project/dagre-d3/latest/demo/clusters.html) I cannot see any label of cluster. I expect the labels "Group", "Top Group" and "Bottom Group". What's missing?

@cpettitt
Copy link
Collaborator

cpettitt commented Jul 4, 2015

Fixed in #180. This will show up in v0.4.9.

@chruetli
Copy link

chruetli commented Jul 6, 2015

Cool, thank you for fast support!

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

Successfully merging this pull request may close these issues.

3 participants