Skip to content

nagi1999a/Network-Graph-with-D3.js-and-Pixi.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Network Graph with D3.js and Pixi.js using React and Typescript

Description

This is a simple demo for drawing multiple network graph using the combination of D3.js and Pixi.js, which in theory will take advantage of fast rendering in Pixi.js and fast layout generating in D3.js.

File Description

  1. The main component to draw graph is in src/compoents/graph.tsx.
  2. The way to setup data and change themes are defined in src/utils/themes.tsx.

Usage

  1. Install Dependencies using yarn install
  2. Modify src/utils/themes.tsx to meet the needs.
  3. Add or Remove files in public.
  4. Run yarn start to start in development mode, or yarn build to get static files and setup a web server like Nginx or Apache for them.

Notice

The delete function of demo page may not work properly in react development mode. In my case, after deleting a graph, it will not stop the ticker of Pixi Application, which will cause a huge drop in FPS after multiple creations/deletions, but this problem seems not to happen in production build.

ScreenShots

See demo.gif

About

Increase render speed using combination of D3.js and Pixi.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published