{"repo":"vasturiano/three-forcegraph","free":true,"listed":false,"github":"https://github.com/vasturiano/three-forcegraph","clone":"git clone https://github.com/vasturiano/three-forcegraph.git","description":"Force-directed graph as a ThreeJS 3d object","language":"JavaScript","stars":302,"topics":["3d-force-graph","threejs","webgl","data-visualization","3d","d3js","force-directed-graphs"],"license":"MIT","category":"analytics","readme_excerpt":"ThreeJS Force-Directed Graph ============================ [![NPM package][npm-img]][npm-url] [![Build Size][build-size-img]][build-size-url] [![NPM Downloads][npm-downloads-img]][npm-downloads-url] A ThreeJS WebGL class to represent a graph data structure in a 3-dimensional space using a force-directed iterative layout. Uses either d3-force-3d or ngraph for the underlying physics engine. See also the standalone version, and the react-three-fiber bindings. ❤️ Support This Project If you find this module useful and would like to support its development, you can buy me a ☕. Your contributions help keep open-source sustainable! Quick start or using a script tag then API reference Method Description Default --- --- :--: graphData ([ data ]) Getter/setter for graph data structure (see below for syntax details). Can also be used to apply incremental updates. { nodes: [], links: [] } jsonUrl ([ url ]) URL of JSON file to load graph data directly from, as an alternative to specifying graphData directly. numDimensions ([ int ]) Getter/setter for number of dimensions to run the force simulation on (1, 2 or 3). 3 dagMode ([ str ]) Apply layout constraints based on the graph directionality. Only works correctly for DAG graph structures (without cycles). Choice between td (top-down), bu (bottom-up), lr (left-to-right), rl (right-to-left), zout (near-to-far), zin (far-to-near), radialout (outwards-radially) or radialin (inwards-radially). dagLevelDistance ([ num ]) If dagMode is engaged, th","default_branch":null,"files":null,"tree":[],"storefront":"/r/vasturiano","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vasturiano/three-forcegraph/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}