Inspired by swimlane/ngx-graph, 'sun graph' is a react component for creating beautiful graph visualization.
'sun graph' will help you to build beautiful graphs in a simple way and to create your own custom graph shapes with your data.
-
Install sun-graph package by running the following command:
yarn add sun-graph
or
npm install sun-graph
-
Import SunGraph component into your react component from sun-graph.
import { SunGraph } from "sun-graph";
-
Graph helper classes should be imported from graph.model
import { Node, Edge } from "sun-graph/graph.model";
-
Layout class should be imported from layout.model
import { Layout } from "sun-graph/layout.model"
Check out our site at https://assafsun.github.io/sun-graph/
yarn install
yarn start