|
@ -11,15 +11,14 @@ |
|
|
width: 600px; |
|
|
width: 600px; |
|
|
height: 400px; |
|
|
height: 400px; |
|
|
border: 1px solid lightgray; |
|
|
border: 1px solid lightgray; |
|
|
|
|
|
display:none; |
|
|
} |
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-61231638-1', 'auto');ga('send', 'pageview');</script></head> |
|
|
|
|
|
|
|
|
|
|
|
<body> |
|
|
<body> |
|
|
|
|
|
|
|
|
<div id="mynetwork"></div> |
|
|
<div id="mynetwork"></div> |
|
|
|
|
|
|
|
|
<!--<input type="button" onclick="document.getElementById('mynetwork').style.display='block';" value="showdiv">--> |
|
|
|
|
|
|
|
|
<input type="button" onclick="document.getElementById('mynetwork').style.display='block'; network.view.zoomExtent({duration:0});" value="showdiv"> |
|
|
<script type="text/javascript"> |
|
|
<script type="text/javascript"> |
|
|
// create an array with nodes |
|
|
// create an array with nodes |
|
|
var nodes = [ |
|
|
var nodes = [ |
|
@ -47,7 +46,7 @@ |
|
|
edges: edges |
|
|
edges: edges |
|
|
}; |
|
|
}; |
|
|
var options = { |
|
|
var options = { |
|
|
configure: 'nodes', |
|
|
|
|
|
|
|
|
// configure: 'nodes', |
|
|
// physics:{stabilization:true} |
|
|
// physics:{stabilization:true} |
|
|
nodes:{color:'red'} |
|
|
nodes:{color:'red'} |
|
|
} |
|
|
} |
|
|