d3.js export format

User's perspective on software quality
Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
psychemedia
Posts:18
Joined:15 Apr 2010 17:50
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
d3.js export format

Post by psychemedia » 24 Sep 2012 20:08

Hi

I was wondering whether a d3.js export format might be useful? That is, export trees/graphs using the JSON representation used by d3.js tree and netwrok visualisations?

I currently use networkx to generate d3.js compatible JSON using the networkx JSON exporter http://networkx.lanl.gov/reference/read ... graph.html

For example - here I used networkx to construct a tree that I then viewed using a d3.js Sankey diagram view:
http://blog.ouseful.info/2012/05/24/f1- ... y-diagram/

And here I used it to generate an expandable mindmap view of a tree http://blog.ouseful.info/2012/05/11/vie ... ing-d3-js/

tony

User avatar
WeezyF
Posts:48
Joined:03 May 2012 02:29
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: d3.js export format

Post by WeezyF » 25 Sep 2012 03:57

YES!! This is such a good idea.
I spent the better part of the day building a d3.js force directed layout. Most of that time was just formatting the JSON.
Tony you are a genius and your blog is awesome!
weezy

Post Reply
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable