---
title: "About 20000 elements"
language: "en"
canonical: "https://g6.antv.antgroup.com/en/examples/performance/massive-data/20000/"
version: "5.1.1"
---

# About 20000 elements

[Live example](https://g6.antv.antgroup.com/en/examples/performance/massive-data/20000/)

[Resource index](/llms.txt)

Provide a DOM element with `id="container"`. The original example source follows.

## Source

```js
import { Graph } from '@antv/g6';

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

    graph.render();
  });
```
