Package Exports
- @vx/network
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@vx/network) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@vx/network
A simple package to visualize a network or graph layout. Does not currently handle network layout.
Example Usage
import { Graph, DefaultLink, DefaultNode } from '@vx/network';
const nodes = [
{ x: 50, y: 20 },
{ x: 200, y: 300 },
{ x: 300, y: 40 },
];
const dataSample = {
nodes,
links: [
{ source: nodes[0], target: nodes[1] },
{ source: nodes[1], target: nodes[2] },
{ source: nodes[2], target: nodes[0] },
],
};
const MyGraph = () => (
<Graph graph={dataSample} linkComponent={DefaultLink} nodeComponent={DefaultNode} />
);Installation
npm install --save @vx/network