> For the complete documentation index, see [llms.txt](https://docs.secoda.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.secoda.co/features/queries/running-queries-in-secoda/adding-live-charts-to-documentation.md).

# Chart block

## Create a chart block

After executing a query, you can choose to display the data as a chart in a chart block. Below are the steps to share a query as a chart.

1. Click `Graph Results` on the bottom of the query block
2. Select the x-axis, y-axis, and optionally the dimension. These options will be automatically selected based on the data in the query results.
3. Select the format of the values (numeric, percentage, currency, decimal)
4. Click `Create graph`
5. The chart will be embedded directly below the query

<figure><img src="https://secoda-public-media-assets.s3.amazonaws.com/f8a765eb-2376-464d-a599-a0c4e0d5a716.gif" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
At this time the chart blocks only support line graphs for time-series data.
{% endhint %}

Additionally, a chart can be embedded anywhere within the documentation by using the `/Query Chart` command. Here's the steps to do this.

1. Use the `/Query Chart` command in the documentation editor
2. Select a query from the Query option
3. Select the x-axis, y-axis, and optionally dimension, and format
4. Click `Create graph`

<figure><img src="https://secoda-public-media-assets.s3.amazonaws.com/5e0335af-7885-425c-a434-c02430f06232.gif" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Not using Secoda to manage your data documentation yet? Sign up for free [here](http://app.secoda.co/) 👈
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.secoda.co/features/queries/running-queries-in-secoda/adding-live-charts-to-documentation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
