You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

179 lines
6.1 KiB
HTML

5 years ago
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Network Advanced</title>
<script src="d3-force-apex-plugin/docs/scripts/prettify/prettify.js"></script>
<script src="d3-force-apex-plugin/docs/scripts/prettify/lang-css.js"></script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div id="main">
<div id="example"></div><!--the graph container-->
<link href="d3-force-apex-plugin/docs/lib/d3-force-3.1.0.css" rel="stylesheet" type="text/css">
<script src="d3-force-apex-plugin/docs/lib/ResizeObserver-1.5.0.min.js"></script>
<script src="d3-force-apex-plugin/docs/lib/d3-3.5.6.min.js"></script>
<script src="d3-force-apex-plugin/docs/lib/d3-force-3.1.0.min.js"></script>
<script>
var w = window.innerWidth;
var h = window.innerHeight;
window.onload = function (){
window.example = netGobrechtsD3Force("example")
.width(w)
.height(h)
.charge(-800)
.wrapLabels(true)
.zoomMode(true)
.debug(true) //also creates the "Customize Me" link
.render({
"data": {
"nodes": [{
"ID": "1",
"LABEL": "XPUB",
"COLORVALUE": "10",
"COLORLABEL": "Accounting",
"SIZEVALUE": 13000,
"LABELCIRCULAR": true,
},
{
"ID": "2",
"LABEL": "Monoskop",
"COLORVALUE": "30",
"COLORLABEL": "Sales",
"LABELCIRCULAR": false,
"SIZEVALUE": 3500
},
{
"ID": "3",
"LABEL": "Varia",
"COLORVALUE": "30",
"COLORLABEL": "Sales",
"SIZEVALUE": 2850
},
{
"ID": "4",
"LABEL": "Constant",
"COLORVALUE": "30",
"COLORLABEL": "Sales",
"SIZEVALUE": 2850,
"INFOSTRING": "cipollotti"
},
{
"ID": "5",
"LABEL": "V2",
"COLORVALUE": "30",
"COLORLABEL": "Sales",
"SIZEVALUE": 2850
},
{
"ID": "6",
"LABEL": "CCRU",
"COLORVALUE": "30",
"COLORLABEL": "Sales",
"SIZEVALUE": 2850,
},
{
"ID": "7",
"LABEL": "Software Studies",
"COLORVALUE": "30",
"COLORLABEL": "Sales",
"SIZEVALUE": 2000,
},
{
"ID": "8",
"LABEL": "Cultural studies",
"COLORVALUE": "30",
"COLORLABEL": "Sales",
"SIZEVALUE": 2000,
},
{
"ID": "9",
"LABEL": "Nettime",
"COLORVALUE": "30",
"COLORLABEL": "Sales",
"SIZEVALUE": 3500,
},
{
"ID": "10",
"LABEL": "Institute of Networked Cultures",
"COLORVALUE": "30",
"COLORLABEL": "Sales",
"SIZEVALUE": 13000,
},
{
"ID": "11",
"LABEL": "Media Theory",
"COLORVALUE": "30",
"COLORLABEL": "Sales",
"SIZEVALUE": 13000,
},
{
"ID": "12",
"LABEL": "Net Art",
"COLORVALUE": "30",
"COLORLABEL": "Sales",
"SIZEVALUE": 13000,
},
{
"ID": "13",
"LABEL": "Software Art",
"COLORVALUE": "30",
"COLORLABEL": "Sales",
"SIZEVALUE": 13000,
}
],
"links": [
{
"FROMID": "1",
"TOID": "2",
"STYLE": "solid",
"LABEL": "Dusan Barok"
},
{
"FROMID": "1",
"TOID": "3",
"STYLE": "solid",
},
{
"FROMID": "4",
"TOID": "1",
"STYLE": "dotted",
},
{
"FROMID": "9",
"TOID": "10",
"STYLE": "solid",
},
{
"FROMID": "6",
"TOID": "7",
"STYLE": "solid",
},
{
"FROMID": "7",
"TOID": "1",
"STYLE": "solid",
},
{
"FROMID": "8",
"TOID": "6",
"STYLE": "solid",
}
]
}
}); //sample data is provided when called without data
}
</script>
</div>
</body>
</html>