Skip to main content

🔍 ZoomScale

zoomScale defines the zoom limits of the graph. The default value is [0.5, 8].


📌 Example Usage

const graphData = {
  nodes: [{ id: 1 }, { id: 2 }, { id: 3 }],
  links: [{ source: 0, target: 1 }, { source: 1, target: 2 }],
};

const MyGraph = () => (
  <Graph graph={graphData} zoomScale={[0.5, 8]} />
);

🎮 Playground

Zoom Scale

Minimum zoom:

Maximum zoom: