Closed thundergolfer closed 7 years ago
Note: This PR has a deletion of `development.log`, because we've got to get
that shit out of the repo. It's already in the .gitignore
Where's organisation_connections.json?
@Raddus forgot to push my last commit. It's in there now.
Alright, looks good. But I don't really understand what the "group" and "value" numbers mean. I'll take a proper look at them later...
In the case of the example value
refers the number of times two characters appear in the same scene of Les Miserables. The higher this value, the closer the two nodes will be in the graph.
In my data I just put in arbitrary stuff but the value
should mean the number of times two members 'collaborated'.
group
is used to colour the nodes, but I don't know what their categorisation criteria is. I used I think:
I don't know whether we want this specific visualisation technique (closer means collab-ed more), but it's a good start.
In future I think we just want the algorithm to nicely space out the nodes, and more collabs will show up in the visualisation as thicker edges and bigger (brighter) nodes.
Description
This PR adds a copy-pasted force-directed network graph in D3.js that serves as a skeleton in which to pass our data.
You can see that there's a
miserables.json
file, which was the site's example data. I've added some more realistic data inorganisation_connections.json
, which shows that once you have the data it's super easy to get a graph going.Our end product will basic end up passing in a javascript object that very much resembles
organisation_connections.json
to theapp/assets/javascripts/d3/network.js
file. Too easy.What it currently looks like
Because I couldn't be bother to type in a lot of data manually, it looks pretty bare.
References
Trello: https://trello.com/c/RZE78xkW/28-setup-basic-network-graph-in-d3-js
Risks
None: New route, new feature.