Documentationv1.0

Getting Started withDiagrammatic-UI

Learn how to use Diagrammatic-UI to create stunning graph visualizations for your React applications.

Quick Reference

Key information at your fingertips

Basic Graph Setup

import { Graph } from 'diagrammatic-ui';

function MyGraph() {
  const graphData = {
    nodes: [
      { id: 'node1', name: 'Node 1' },
      { id: 'node2', name: 'Node 2' }
    ],
    edges: [
      { id: 'edge1', source: 'node1', target: 'node2' }
    ]
  };

  return (
    <Graph 
      data={graphData}
      height={500}
      theme="light"
    />
  );
}
Installation guide

Available Layouts

  • force - Physics-based layout
  • circular - Nodes in a circle
  • tree - Hierarchical layout
  • spiral - Nodes in a spiral
  • donut - Circular with hole
  • grid - Nodes in a grid
Learn about layouts

Ready to build your graph visualization?

Get started with Diagrammatic-UI today and create stunning visualizations for your data.