Bump postcss from 8.4.23 to 8.4.31
Bumps postcss from 8.4.23 to 8.4.31.
updated-dependencies:
- dependency-name: postcss dependency-type: indirect …
Signed-off-by: dependabot[bot] support@github.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号
neovis.js
Graph visualizations powered by vis.js with data from Neo4j.
Features
Install
Neovis.js can be installed via npm:
you can also obtain neovis.js via CDN:
CDN
For ease of use Neovis.js can be obtained from Neo4jLabs CDN:
Most recent release
Version without neo4j-driver dependency
Quickstart Example
Let’s go through the steps to reproduce this visualization:
Prepare Neo4j
Start with a blank Neo4j instance, or spin up a blank Neo4j Sandbox. We’ll load the Game of Thrones dataset, run:
We’ve pre-calculated PageRank and ran a community detection algorithm to assign community ids for each Character. Let’s load those next:
Our graph now consists of
Characternodes that are connected by anINTERACTSrelationships. We can visualize the whole graph in Neo4j Browser by running:We can see characters that are connected and with the help of the force directed layout we can begin to see clusters in the graph. However, we want to visualize the centralities (PageRank) and community detection results that we also imported.
Specifically we would like:
pagerankscore. This will allow us to quickly identify important nodes in the network.communityproperty. This will allow us to visualize clusters.weightproperty on theINTERACTSrelationship.Neovis.js, by combining the JavaScript driver for Neo4j and the vis.js visualization library will allow us to build this visualization.
index.html
Create a new html file:
We define some basic CSS to specify the boundaries of a
divand then create a singledivin the body. We also specifyonload="draw()"so that thedraw()function is called as soon as the body is loaded.We need to pull in
neovis.js:And define our draw() function:
This function creates a
configobject that specifies how to connect to Neo4j, what data to fetch, and how to configure the visualization.See simple-example.html for the full code.
module usage
you can also use it as module, but it would require you have a way to import css files
or you can import the version with bundled dependency
Api Reference
Api Reference
Build
This project uses git submodules to include the dependencies for neo4j-driver and vis.js. This project uses webpack to build a bundle that includes all project dependencies.
webpack.config.jscontains the configuration for webpack. After cloning the repo:will build
dist/neovis.jsanddist/neovis-without-dependencies.js