Skip to content

More than 60000 elements

Loading example…

Source
import { Graph } from '@antv/g6';

fetch('https://assets.antv.antgroup.com/g6/60000.json')
  .then((res) => res.json())
  .then((data) => {
    const graph = new Graph({
      container: 'container',
      animation: false,
      autoFit: 'view',
      data,
      node: {
        style: {
          size: 4,
          batchKey: 'node',
        },
      },
      behaviors: ['zoom-canvas', 'drag-canvas'],
    });

    graph.render();
  });
Site search
Documentation and examplesType to start searching

Search documentation, APIs, and examples

↑↓Select↵OpenEscClose