From 1f3c6c2e41383a8571039753b5d73503fc8dc4ed Mon Sep 17 00:00:00 2001 From: Tom Gallacher Date: Mon, 5 Dec 2016 17:42:38 +0000 Subject: [PATCH] New pass as d3 --- spikes/architecture/d3-revamp/README.md | 14 ++ spikes/architecture/d3-revamp/index.html | 245 ++++++++++++++++++++ spikes/architecture/d3-revamp/services.json | 15 ++ 3 files changed, 274 insertions(+) create mode 100644 spikes/architecture/d3-revamp/README.md create mode 100644 spikes/architecture/d3-revamp/index.html create mode 100644 spikes/architecture/d3-revamp/services.json diff --git a/spikes/architecture/d3-revamp/README.md b/spikes/architecture/d3-revamp/README.md new file mode 100644 index 00000000..9304b03b --- /dev/null +++ b/spikes/architecture/d3-revamp/README.md @@ -0,0 +1,14 @@ +# D3 graph layouts + +D3 v4, has a nice force directed graph set of features, that allows you to implement features in the graph with ease. By just manipulating the nodes using svg attributes and css. +This with the addition that D3 is a very well respected and widely used toolkit, makes finding documentation and developer speed a breeze. + +It does seem to slow down on larger nodes, but this is mainly due to the built in force directed animation, disabling this, or computing this in a web-worker can speed up things considerably. + +As a developer I found my self more productive with the API that d3 exposes, and was able to accomplish more in the same time as other frameworks. + +## Research + +- React http://formidable.com/blog/2015/05/21/react-d3-layouts/ + +![screenshot from 2016-11-04 16-48-29](https://cloud.githubusercontent.com/assets/524382/20059671/5ab66080-a4ef-11e6-94d6-d09bbaa9a76a.png) diff --git a/spikes/architecture/d3-revamp/index.html b/spikes/architecture/d3-revamp/index.html new file mode 100644 index 00000000..208ca463 --- /dev/null +++ b/spikes/architecture/d3-revamp/index.html @@ -0,0 +1,245 @@ + + + + + + diff --git a/spikes/architecture/d3-revamp/services.json b/spikes/architecture/d3-revamp/services.json new file mode 100644 index 00000000..cc8be654 --- /dev/null +++ b/spikes/architecture/d3-revamp/services.json @@ -0,0 +1,15 @@ +{ + "nodes": [ + {"id": "Nginx", "group": 1}, + {"id": "Wordpress", "group": 1}, + {"id": "Memcached", "group": 1}, + {"id": "Percona", "group": 1}, + {"id": "NFS", "group": 1} + ], + "links": [ + {"source": "Nginx", "target": "Wordpress", "value": 1}, + {"source": "Wordpress", "target": "Memcached", "value": 8}, + {"source": "Wordpress", "target": "NFS", "value": 8}, + {"source": "Wordpress", "target": "Percona", "value": 8} + ] +}