> ## Documentation Index
> Fetch the complete documentation index at: https://docs.meetsilicon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create reusable chart types with Chart Studio

> Reusable chart types you build once for your project, then use like any built-in chart type

> [!NOTE]
>
> Chart Studio doesn't need [data apps](https://docs.meetsilicon.com/data-apps) turned on. See [Permissions](#permissions) for who can build chart types.

Chart Studio is the agentic in-platform interface for building [custom chart types](https://docs.meetsilicon.com/visualizations/custom-charts). You describe the chart you want, Silicon builds it, and anyone in the project can then use it like a built-in chart type. Open **Configure** in the Explorer, click **Change**, and pick it from the **Custom** group of the chart type gallery.

The same chart type can power many saved charts, each with its own query and field mapping.

## Browsing chart types

Every chart type in the project lives in Chart Studio. Go to **Browse** and pick **Chart Studio**.

Each card previews the chart type with sample data. Click a card to see its description, who built it, its inputs, and its current version, and to preview it in the Explorer, edit it, or delete it.

## Building a chart type

Build chart types from the Explorer, on top of a query whose results look like the ones the chart type will render against. Working against real data as you prompt makes the preview trustworthy and cuts out the sample-to-real gap you'd otherwise close after the fact.

**1. Run the query you want to design against**

In the Explorer, pick the dimensions and metrics the chart type needs and run the query. The results become Chart Studio's preview data.

**2. Open Chart Studio**

Open **Configure**, click **Change**, and pick the **New chart type** tile in the **Custom** group. Chart Studio opens in the chart panel and the sidebar switches to its generated options.

**3. Describe the chart**

Type what you want in the prompt bar. Chart Studio builds it and renders it against your query's real results. The **Generated options** panel holds the display options the chart type declares, along with a color palette to preview it against. Follow-up prompts create new versions, and **History** opens a panel where you can view an earlier version or restore it.

**4. Name it**

Name and describe the chart type in the header. That's what people see in the gallery and in the chart type picker.

To edit a chart type you already have selected in the Explorer, click the pencil next to its name in the **Configure chart** sidebar.

You can also start from **Browse -> Chart Studio**: click **New chart type** to open Chart Studio against sample data, then click **Preview in explorer** when you want to try it against a real query.

> [!TIP]
>
> Chart types can also be developed on your machine and uploaded with the CLI. See [Chart types as code](#chart-types-as-code). AI assistants connected to the [Silicon MCP server](https://docs.meetsilicon.com/agents/silicon-mcp.md#chart-types) can build them too.

## Using a chart type in a chart

**1. Run your query**

Select the dimensions and metrics your chart needs and run the query. You have to run it before you can pick a custom chart type.

**2. Pick the chart type**

Open **Configure** to open the chart sidebar, then click **Change**. The **Custom** group at the top of the gallery lists the project's chart types; click the **more** tile to see the rest, or search the gallery by name. Only chart types that finished building are listed.

**3. Map your fields**

Each of the chart type's inputs gets a field picker in the **General** tab, the same as configuring axes on a bar or line chart. Required inputs can't be cleared. The chart type's own display options sit in the tabs beside it.

The chart re-renders as you change the mapping or the underlying query.

## Saving and dashboards

Save the chart like any other chart. The saved chart remembers which chart type it uses, how its inputs are mapped, and which version of the chart type it uses (see [Versions and upgrades](#versions-and-upgrades)).

Saved charts render in chart view and as dashboard tiles, driven by each surface's own query - dashboard filters and [date zoom](https://docs.meetsilicon.com/explore/dashboards/date-zoom.md) apply like any other chart tile. Charts in [documents](https://docs.meetsilicon.com/explore/documents.md) can use the chart type too.

## Versions and upgrades

Every follow-up prompt in Chart Studio creates a new version of the chart type. A saved chart keeps using the version it was saved with, so changing a chart type never changes the charts that already use it.

When you edit a chart and a newer version of its chart type exists, the **Configure chart** sidebar shows **Newer version available**. Click **Review upgrade** to see what changed: inputs and options that were added, renamed or removed, and any change to the color palette.

Click **Upgrade** to move the chart to the latest version. Only that chart moves, and nothing changes until you save it. If the new version added a required input, map a field to it and the chart renders again.

Chart Studio has its own upgrade, for the chart type itself. When a chart type was built on an older version of the data apps runtime, the Chart Studio header shows **Upgrade available**. Starting it rebuilds the chart type as a new version, and **History** shows what's new. How the chart type renders doesn't change unless you ask for it in a follow-up prompt.

## Chart types as code

Chart types round-trip through the CLI as their own resource, separate from data apps. Each one downloads to `silicon/chart-types/<slug>/` as a locally buildable project you can version in git, edit, validate with [`silicon apps validate`](https://docs.meetsilicon.com/workflow/cli/reference#silicon-apps-validate), and upload back:

```bash theme={null}
silicon download --chart-types-only --chart-types calendar-heatmap
silicon upload --chart-types calendar-heatmap
```

A chart type's identity is the `slug` in its `silicon-app.yml` manifest, upserted in the target project on upload. The manifest also carries a `vizSchema` field with the chart type's declared inputs, so the inputs round-trip with the source.

Saved charts reference their chart type by that slug in chart YAML (the `dataAppVizSlug` field), which keeps chart files portable across projects and instances:

* Downloading charts brings the chart types they render with along automatically, into `silicon/chart-types/`.
* Uploading a chart resolves the slug in the target project. If the chart type doesn't exist there, the chart upload fails with a message to run `silicon upload --chart-types <slug>` first.
* Chart YAML written before slug references carries a `dataAppVizUuid` instead. Uploads accept it, but new downloads always write the slug.

The folder layout and server-side build pipeline are the same as for data apps -- see [Data apps as code](https://docs.meetsilicon.com/data-apps/download-data-apps-as-code.md), and the `--chart-types` flags on [`silicon download`](https://docs.meetsilicon.com/workflow/cli/reference#silicon-download) and [`silicon upload`](https://docs.meetsilicon.com/workflow/cli/reference#silicon-upload) for the full flag lists.

## Permissions

Chart types are available across the whole project. They don't live in spaces and can't be moved into one.

* Anyone who can view a chart can see the chart type it renders with.
* Editors and above can build new chart types.
* You can edit and delete the chart types you built. Project admins can edit and delete any of them.

> [accordion] Linking external connections
>
> Chart types render in the same sandbox as data apps, so they can only reach the network through [external connections](https://docs.meetsilicon.com/data-apps/external-connections.md). That covers two cases: calling a third-party API while the chart renders, and showing images from a URL field in your results. Without a linked connection, the sandbox blocks images from any other origin.
>
> A project admin registers the connection once, then whoever builds the chart type links it from Chart Studio.
>
> **1. Register the connection**
>
> Go to **Project Settings -> Data app connections** and click **Add connection**. Enter the **Base URL** of the host the chart type needs to reach and pick the auth method that host requires. A public image host needs **None**.
>
> **2. Allow images from it**
>
> If the chart type shows images, turn on **Allow public images in linked apps**. Linked chart types can then load images straight from that origin, in \`\` tags or CSS. Leave it off for hosts you only call for data.
>
> **3. Choose who can link it**
>
> Set **Who can link this connection?** to **Data app and chart type builders** so editors can attach it from Chart Studio. **Admins only** keeps it out of everyone else's picker.
>
> **4. Attach it in Chart Studio**
>
> Open the chart type in Chart Studio, or start a new one, and click **Add external connections** in the prompt bar. Tick the connection, then describe the chart, or send a follow-up prompt such as "show the image from the Image URL input". The link is created when that build runs, so an existing chart type needs at least one follow-up prompt to pick it up.
>
> **5. Check it in the Explorer**
>
> Click **Preview in explorer**, run a query that includes the image URL field, and map it to the chart type's input. The images should render.
>
> Once linked, the connection stays with the chart type across versions and everywhere it renders: the Chart Studio preview, the Explorer, saved charts, dashboard tiles, and embedded dashboards. The indicator in the prompt bar counts linked connections. Open it and untick a connection to unlink it. Unlinking only removes the link, so the generated code keeps calling the connection until you build a new version.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.