# Generative UI: Data

> Explore interactive tables, lists, charts and maps, with complete A2UI source.

Source: <https://everruns.com/docs/reference/generative-ui/data/>

Explore tables, lists, charts and maps.

[All categories](https://everruns.com/docs/reference/generative-ui/)[Layout](https://everruns.com/docs/reference/generative-ui/layout/)[Text](https://everruns.com/docs/reference/generative-ui/text/)[Inputs](https://everruns.com/docs/reference/generative-ui/inputs/)[Data](https://everruns.com/docs/reference/generative-ui/data/)[Dynamic values](https://everruns.com/docs/reference/generative-ui/dynamic-values/)[Media](https://everruns.com/docs/reference/generative-ui/media/)[Composites](https://everruns.com/docs/reference/generative-ui/composites/)[Feedback](https://everruns.com/docs/reference/generative-ui/feedback/)

Try the controls and expand **A2UI example** for source. Actions display their message and values locally; no account or agent run is needed. Use **Reset** to start again. External maps and media load only when you select their load button.

No examples match. Try another component name or category.

Data

## Table with columns and rows, component cells

`Table`

A2UI example

Put this operation inside an `a2ui` Markdown fence. Try the controls above. Actions appear locally in the preview; in an editable chat they become messages.

```
{
  "version": "1.0",
  "createSurface": {
    "surfaceId": "example-19",
    "catalogId": "copilotkit/standard@1",
    "components": [
      {
        "id": "root",
        "component": "Table",
        "columns": [
          "Plan",
          "Best for",
          {
            "label": "Price",
            "align": "end"
          },
          "Status"
        ],
        "rows": [
          [
            "Starter",
            "Individuals",
            "$0",
            {
              "componentId": "b1"
            }
          ],
          [
            "Team",
            "Growing teams",
            "$29/seat",
            {
              "componentId": "b2"
            }
          ],
          [
            "Enterprise",
            "Large orgs",
            "Custom",
            {
              "componentId": "btn"
            }
          ]
        ],
        "cellComponents": [
          "b1",
          "b2",
          "btn"
        ]
      },
      {
        "id": "b1",
        "component": "Badge",
        "label": "Free"
      },
      {
        "id": "b2",
        "component": "Badge",
        "label": "Popular",
        "color": "success"
      },
      {
        "id": "btn",
        "component": "Button",
        "label": "Contact",
        "size": "sm",
        "onClick": {
          "event": {
            "name": "contact",
            "userMessage": "Contact sales about Enterprise"
          }
        }
      }
    ]
  }
}
```

Data

## Table from TableSection, TableRow, TableCell

`TableSection``TableRow``TableCell`

A2UI example

Put this operation inside an `a2ui` Markdown fence. Try the controls above. Actions appear locally in the preview; in an editable chat they become messages.

```
{
  "version": "1.0",
  "createSurface": {
    "surfaceId": "example-20",
    "catalogId": "copilotkit/standard@1",
    "dataModel": {
      "days": [
        {
          "day": "Day 1",
          "budget": "€80"
        },
        {
          "day": "Day 2",
          "budget": "€87"
        },
        {
          "day": "Day 3",
          "budget": "€108"
        }
      ]
    },
    "components": [
      {
        "id": "root",
        "component": "Table",
        "children": [
          "head",
          "body"
        ]
      },
      {
        "id": "head",
        "component": "TableSection",
        "header": true,
        "children": [
          "hr"
        ]
      },
      {
        "id": "hr",
        "component": "TableRow",
        "header": true,
        "children": [
          "h1",
          "h2"
        ]
      },
      {
        "id": "h1",
        "component": "TableCell",
        "text": "Day",
        "header": true
      },
      {
        "id": "h2",
        "component": "TableCell",
        "text": "Budget",
        "header": true,
        "align": "end"
      },
      {
        "id": "body",
        "component": "TableSection",
        "children": {
          "componentId": "row",
          "path": "/days"
        }
      },
      {
        "id": "row",
        "component": "TableRow",
        "children": [
          "c1",
          "c2"
        ]
      },
      {
        "id": "c1",
        "component": "TableCell",
        "text": {
          "@path": "day"
        }
      },
      {
        "id": "c2",
        "component": "TableCell",
        "text": {
          "@path": "budget"
        },
        "align": "end"
      }
    ]
  }
}
```

Data

## List markers and ListItem

`List``ListItem`

A2UI example

Put this operation inside an `a2ui` Markdown fence. Try the controls above. Actions appear locally in the preview; in an editable chat they become messages.

```
{
  "version": "1.0",
  "createSurface": {
    "surfaceId": "example-21",
    "catalogId": "copilotkit/standard@1",
    "components": [
      {
        "id": "root",
        "component": "Column",
        "gap": 3,
        "children": [
          "n",
          "r",
          "k",
          "h"
        ]
      },
      {
        "id": "h",
        "component": "List",
        "direction": "horizontal",
        "marker": "none",
        "items": [
          {
            "label": "Horizontal",
            "icon": "arrow-right"
          },
          {
            "label": "list",
            "icon": "list"
          },
          {
            "label": "scrolls sideways",
            "icon": "move-horizontal"
          }
        ]
      },
      {
        "id": "n",
        "component": "List",
        "marker": "number",
        "items": [
          "Arrive and settle in",
          "Walk Praça do Comércio",
          "Sunset at Miradouro de Santa Luzia"
        ]
      },
      {
        "id": "r",
        "component": "List",
        "marker": "rich",
        "items": [
          {
            "label": "Café Central",
            "description": "Grand historic café",
            "icon": "coffee"
          },
          {
            "label": "Café Sacher",
            "description": "Home of the Sachertorte",
            "icon": "cake"
          }
        ]
      },
      {
        "id": "k",
        "component": "List",
        "children": [
          "li1",
          "li2"
        ]
      },
      {
        "id": "li1",
        "component": "ListItem",
        "label": "ListItem with an event",
        "description": "A click sends an event",
        "icon": "mouse-pointer-click",
        "action": {
          "event": {
            "name": "pick",
            "userMessage": "Picked item one"
          }
        }
      },
      {
        "id": "li2",
        "component": "ListItem",
        "label": "Plain ListItem",
        "description": "No event"
      }
    ]
  }
}
```

Data

## Chart types

`Chart`

A2UI example

Put this operation inside an `a2ui` Markdown fence. Try the controls above. Actions appear locally in the preview; in an editable chat they become messages.

```
{
  "version": "1.0",
  "createSurface": {
    "surfaceId": "example-22",
    "catalogId": "copilotkit/standard@1",
    "dataModel": {
      "budget": [
        {
          "day": "Day 1",
          "food": 45,
          "transport": 10,
          "activities": 25
        },
        {
          "day": "Day 2",
          "food": 40,
          "transport": 12,
          "activities": 35
        },
        {
          "day": "Day 3",
          "food": 35,
          "transport": 18,
          "activities": 55
        },
        {
          "day": "Day 4",
          "food": 45,
          "transport": 10,
          "activities": 30
        }
      ],
      "growth": [
        {
          "month": "Jan",
          "users": 120
        },
        {
          "month": "Feb",
          "users": 180
        },
        {
          "month": "Mar",
          "users": 260
        },
        {
          "month": "Apr",
          "users": 410
        },
        {
          "month": "May",
          "users": 520
        }
      ],
      "share": [
        {
          "name": "Starter",
          "value": 0.55
        },
        {
          "name": "Team",
          "value": 0.35
        },
        {
          "name": "Enterprise",
          "value": 0.1
        }
      ]
    },
    "components": [
      {
        "id": "root",
        "component": "Column",
        "gap": 4,
        "children": [
          "bar",
          "line",
          "pie"
        ]
      },
      {
        "id": "bar",
        "component": "Chart",
        "chartType": "bar",
        "title": "Stacked bar",
        "stacked": true,
        "height": 220,
        "data": {
          "@path": "/budget"
        },
        "xKey": "day",
        "series": [
          {
            "key": "food",
            "label": "Food"
          },
          {
            "key": "transport",
            "label": "Transport"
          },
          {
            "key": "activities",
            "label": "Activities"
          }
        ],
        "format": "currency",
        "currency": "EUR"
      },
      {
        "id": "line",
        "component": "Chart",
        "chartType": "line",
        "title": "Line",
        "height": 200,
        "data": {
          "@path": "/growth"
        },
        "xKey": "month",
        "series": [
          "users"
        ]
      },
      {
        "id": "pie",
        "component": "Chart",
        "chartType": "donut",
        "title": "Donut",
        "height": 220,
        "data": {
          "@path": "/share"
        },
        "xKey": "name",
        "series": [
          "value"
        ],
        "format": "percent"
      }
    ]
  }
}
```

Data

## Map with markers and route

`Map`

A2UI example

Put this operation inside an `a2ui` Markdown fence. Try the controls above. Actions appear locally in the preview; in an editable chat they become messages.

```
{
  "version": "1.0",
  "createSurface": {
    "surfaceId": "example-23",
    "catalogId": "copilotkit/standard@1",
    "components": [
      {
        "id": "root",
        "component": "Map",
        "height": 280,
        "route": true,
        "markers": [
          {
            "label": "Café Central",
            "lat": 48.2106,
            "lng": 16.3658
          },
          {
            "label": "Café Landtmann",
            "lat": 48.2108,
            "lng": 16.3613
          },
          {
            "label": "Café Hawelka",
            "lat": 48.2074,
            "lng": 16.369
          },
          {
            "label": "Café Sacher",
            "lat": 48.2037,
            "lng": 16.3697
          }
        ]
      }
    ]
  }
}
```

Using these components in chat? See [Generative UI in chat](https://everruns.com/docs/features/generative-ui/) and [AG-UI support](https://everruns.com/docs/integrations/ag-ui/).

Examples adapted from the [CopilotKit standard catalog](https://docs.copilotkit.ai/generative-ui/components/standard-catalog), under the [MIT license](https://github.com/everruns/everruns/blob/main/apps/ui/generative-ui/COPILOTKIT-LICENSE).