123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <html>
- <head>
- <title>DataViz</title>
- <style type="text/css">
- #viz {
- width: 900px;
- height: 700px;
- }
- </style>
- <script src="../dist/neovis.js"></script>
- </head>
- <script>
- function draw() {
- var config = {
- container_id: "viz",
- server_url: "bolt://54.88.38.186:32889",
- server_user: "neo4j",
- server_password: "change-guest-honks",
- labels: {
- "Troll": {
- caption: "user_key",
- size: "pagerank",
- community: "community"
- }
- },
- relationships: {
- "RETWEETS": {
- caption: false,
- thickness: "count"
- }
- },
- initial_cypher: "MATCH p=(:Troll)-[:RETWEETS]->(:Troll) RETURN p"
- }
- var viz = new NeoVis.default(config);
- viz.render();
- }
- </script>
- <body onload="draw()">
- <div id="viz"></div>
- </body>
- </html>
|