# page.corvus.view

> Published by [corvus.page](https://lexicon.garden/identity/did:plc:3qc4cbzcriye72qqqodeda26)

✓ This is the authoritative definition for this NSID.

## Description

View block variants — visualizations rendered over a database or SQL query (`page.corvus.database`). Each sub-def is a view shape selected by `page.corvus.block.blockType`.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:3qc4cbzcriye72qqqodeda26/page.corvus.view)
- [Documentation](https://lexicon.garden/lexicon/did:plc:3qc4cbzcriye72qqqodeda26/page.corvus.view/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:3qc4cbzcriye72qqqodeda26/page.corvus.view/examples)

## Definitions

### `page.corvus.view#graph`

**Type**: `object`

A graph view block

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `query` | `ref` → `page.corvus.core#register` | No | Block id of the page.corvus.database#sql block whose results this view plots |
| `blockId` | `string` (at-uri) | Yes | The AT-URI of this block record |
| `chartType` | `ref` → `page.corvus.core#register` | No | Chart style (string register, known values: bar, line, scatter, area, pie) |

### `page.corvus.view#table`

**Type**: `object`

A table view block

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `query` | `ref` → `page.corvus.core#register` | No | Block id of the page.corvus.database#sql block whose results this view renders |
| `blockId` | `string` (at-uri) | Yes | The AT-URI of this block record |

### `page.corvus.view#kanban`

**Type**: `object`

A kanban board view block

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `lanes` | `ref` → `page.corvus.core#sequence` | No | Ordered sequence of page.corvus.contentBlocks#option block ids setting the lane order |
| `title` | `ref` → `page.corvus.core#sequence` | No | The board title as a text sequence |
| `blockId` | `string` (at-uri) | Yes | The AT-URI of this block record |
| `groupBy` | `ref` → `page.corvus.core#register` | Yes | Block id of the page.corvus.database#column that places each card in a lane |
| `database` | `ref` → `page.corvus.core#register` | Yes | Block id of the backing page.corvus.database block |

## Raw Schema

```json
{
  "id": "page.corvus.view",
  "defs": {
    "graph": {
      "type": "object",
      "required": [
        "blockId"
      ],
      "properties": {
        "query": {
          "ref": "page.corvus.core#register",
          "type": "ref",
          "description": "Block id of the page.corvus.database#sql block whose results this view plots"
        },
        "blockId": {
          "type": "string",
          "format": "at-uri",
          "description": "The AT-URI of this block record"
        },
        "chartType": {
          "ref": "page.corvus.core#register",
          "type": "ref",
          "description": "Chart style (string register, known values: bar, line, scatter, area, pie)"
        }
      },
      "description": "A graph view block"
    },
    "table": {
      "type": "object",
      "required": [
        "blockId"
      ],
      "properties": {
        "query": {
          "ref": "page.corvus.core#register",
          "type": "ref",
          "description": "Block id of the page.corvus.database#sql block whose results this view renders"
        },
        "blockId": {
          "type": "string",
          "format": "at-uri",
          "description": "The AT-URI of this block record"
        }
      },
      "description": "A table view block"
    },
    "kanban": {
      "type": "object",
      "required": [
        "blockId",
        "database",
        "groupBy"
      ],
      "properties": {
        "lanes": {
          "ref": "page.corvus.core#sequence",
          "type": "ref",
          "description": "Ordered sequence of page.corvus.contentBlocks#option block ids setting the lane order"
        },
        "title": {
          "ref": "page.corvus.core#sequence",
          "type": "ref",
          "description": "The board title as a text sequence"
        },
        "blockId": {
          "type": "string",
          "format": "at-uri",
          "description": "The AT-URI of this block record"
        },
        "groupBy": {
          "ref": "page.corvus.core#register",
          "type": "ref",
          "description": "Block id of the page.corvus.database#column that places each card in a lane"
        },
        "database": {
          "ref": "page.corvus.core#register",
          "type": "ref",
          "description": "Block id of the backing page.corvus.database block"
        }
      },
      "description": "A kanban board view block"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "description": "View block variants — visualizations rendered over a database or SQL query (`page.corvus.database`). Each sub-def is a view shape selected by `page.corvus.block.blockType`."
}
```
