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

opacity:0 #42

Closed
philfreo opened this issue May 2, 2014 · 5 comments
Closed

opacity:0 #42

philfreo opened this issue May 2, 2014 · 5 comments

Comments

@philfreo
Copy link

philfreo commented May 2, 2014

I just tried a simple example (mostly a copy/paste from interactive-demo.html) with one node (labeled "a") and for some reason the has a style="opacity: 0;" on it. If I remove that style manually in the Chrome inspector the graph appears fine.

What would cause the opacity:0?

@philfreo
Copy link
Author

philfreo commented May 2, 2014

screenshot 2014-05-02 09 50 02

Adding the following CSS makes the graph show, but I'm not sure why it's necessary.

svg g, svg path { opacity: 1 !important; }

@cpettitt
Copy link
Collaborator

cpettitt commented May 3, 2014

Can you post the modified code? Are you seeing the same problem with the regular interactive-demo? If so, any errors in the console?

@philfreo
Copy link
Author

philfreo commented May 5, 2014

I wasn't getting any errors in console, but I actually can't reproduce this issue anymore, sorry for the unnecessary ticket.

Off topic and not sure if it's in the scope of dagre/dagre-d3 or not, but would it make sense to have a new layout type in dagre (instead of left->right or top->bottom) that's more of a force-directed graph? In graphviz, something like layout: sfdp. Or a layout using d3's built in force layout like http://bl.ocks.org/mbostock/4062045

@philfreo philfreo closed this as completed May 5, 2014
@cpettitt
Copy link
Collaborator

cpettitt commented May 6, 2014

The d3 folks have done a really good job with force-directed graphs and I can't see myself doing it any better. I could see adding a helper somewhere to convert a graphlib graph into something compatible with d3, but I think the amount of code would turn out to be pretty small.

@philfreo
Copy link
Author

philfreo commented May 6, 2014

Ya that makes sense - I first discovered your library and loved how simple it was to make a good looking directed graph with labels on the nodes and on the edges. I saw the bl.ocks link above but (am new to d3) haven't seen a similar example with rectangular nodes, node/edge labels, etc.

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

2 participants