All Projects β†’ jin5354 β†’ d3-force-graph

jin5354 / d3-force-graph

Licence: other
Force-directed graph using D3-force and WebGL, support massive data rendering and custom style.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
GLSL
2045 projects
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to d3-force-graph

awosome-ai-in-social-media
πŸ’» Collect those AI & Bot use in social media wechat/facebook/twitter/instagram/weibo/TikTok etc.
Stars: ✭ 21 (-71.62%)
Mutual labels:  social-network, social-network-analysis
Real Time Social Media Mining
DevOps pipeline for Real Time Social/Web Mining
Stars: ✭ 22 (-70.27%)
Mutual labels:  social-network, social-network-analysis
d3-force-webgl-integration-demo
Integrating WebGL and D3-force to improve performance. πŸ‘»
Stars: ✭ 44 (-40.54%)
Mutual labels:  d3, d3-force
jungrapht-visualization
visualization and sample code from Java Universal Network Graph ported to use JGraphT models and algorithms
Stars: ✭ 37 (-50%)
Mutual labels:  social-network, social-network-analysis
Friends-Recommender-In-Social-Network
Friends Recommendation and Link Prediction in Social Netowork
Stars: ✭ 33 (-55.41%)
Mutual labels:  social-network, social-network-analysis
vue-network-d3
D3 Force-Directed Graph as Vue Component. D3 εŠ›ε―Όε‘ε›Ύδ½œδΈΊ Vue 组仢。
Stars: ✭ 35 (-52.7%)
Mutual labels:  d3, d3-force
vue-d3-charts
D3 charts for Vue
Stars: ✭ 66 (-10.81%)
Mutual labels:  d3, d3-charts
Reaviz
πŸ“Š Data visualization library for React based on D3
Stars: ✭ 215 (+190.54%)
Mutual labels:  d3
P2p Graph
Real-time P2P network visualization with D3
Stars: ✭ 245 (+231.08%)
Mutual labels:  d3
Keen Dataviz.js
Data Visualization Charting Library
Stars: ✭ 215 (+190.54%)
Mutual labels:  d3
D3 Ng2 Service
A D3 service for use with Angular.
Stars: ✭ 210 (+183.78%)
Mutual labels:  d3
Id
πŸ†” The easy-to-use OpenStreetMap editor in JavaScript.
Stars: ✭ 2,667 (+3504.05%)
Mutual labels:  d3
Webpack Ops
πŸ“ webpack bundle visualization // optimization // config tool
Stars: ✭ 251 (+239.19%)
Mutual labels:  d3
Netjsongraph.js
NetJSON NetworkGraph visualizer based on d3.js
Stars: ✭ 216 (+191.89%)
Mutual labels:  d3
ddplot
Create D3 based SVG graphics easily from R
Stars: ✭ 43 (-41.89%)
Mutual labels:  d3
Architecturetree
Draw and share your software architecture without diagramming software. Uses d3.js and Angular.js.
Stars: ✭ 211 (+185.14%)
Mutual labels:  d3
kotlin-js-D3js-example
A simple example of a D3 JavaScript program in Kotlin
Stars: ✭ 13 (-82.43%)
Mutual labels:  d3
causefolio
For the community, by the community.
Stars: ✭ 44 (-40.54%)
Mutual labels:  social-network
Visavail
A D3.js Time Data Availability Visualization
Stars: ✭ 245 (+231.08%)
Mutual labels:  d3
Gtr Cof
Interactive music theory dashboard for guitarists. http://guitardashboard.com/
Stars: ✭ 244 (+229.73%)
Mutual labels:  d3

D3-Force-Graph

Build Status version mit

demo1 demo2 gif1 gif2

Intro

D3-Force-Graph is a javascript component which can create a force-directed graph using D3-force and web worker for calculation layout and ThreeJS for rendering. It can support large amount datasets rendering (~ 100k nodes and links) and custom styles.

Online Demos

Install

npm i d3-force-graph --save

Usage

let chart = new D3ForceGraph(container, data, config)

Example:

import {D3ForceGraph} from 'd3-force-graph'

let $container = document.getElementById('container')
let testData = {
  nodes: [{
    id: 'TestNodeA'
  }, {
    id: 'TestNodeB'
  }],
  links: [{
    source: 'TestNodeA',
    target: 'TestNodeB'
  }]
}
let chart = new D3ForceGraph($container, testData, {
  width: 500,
  height: 500
})

params

{
  nodes: [{
    id: 'c2Fkcw',                             // mandatory,   string,   unique node id
    name: 'TestNodeA'                         // optional,    string,   node alias
    scale: 1                                  // optional,    number,   node size scale, default is 1
    image: 'https://example.com/example.jpg'  // optional,    string,   node image url
  }, ...],
  links: [
    source: 'c2Fkcw',                         // mandatory,   string,   link source node id
    target: 'c2Fkcy',                         // mandatory,   string,   link target node id
   color: [255, 255, 255]                     // optional,    array,    link color, [R, G, B] from 0 ~ 255, default is [255, 255, 255]
  ]
}
{
  width: 600,                               // mandatory,   number,   chart width
  height: 600,                              // mandatory,   number,   chart height
  nodeSize: 3000,                           // optional,    number,   node size, rendering node size = nodeSize * node.scale, default is 3000
  arrowSize: 1250,                          // optional,    number,   arrow size, default is 1250
  showArrow: true,                          // optional,    boolean,  show arrow, default is true
  zoomNear: 75,                             // optional,    number,   max zoom in, default is 75
  zoomFar: 16000                            // optional,    number,   max zoom out, default is 16000
}

events

You can use instance.events.on(eventName, callback) to add event listener.

  • tick: triggered after every d3-force tick event
  • end: triggered after d3-force end event

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].