This is an initial implement that at the moment constructs the required SVG layout to be used by D3.
16 lines
454 B
JSON
16 lines
454 B
JSON
{
|
|
"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}
|
|
]
|
|
}
|