# Smart Charts

{% hint style="success" %}
This is the official documentation of the `forestadmin-agent-django` and `forestadmin-agent-flask` Python agents.
{% endhint %}

## Create a Smart Chart

By using the finite list of predefined Charts (Single, Distribution, Time-based, etc.), you are constrained by how that data is displayed.

With **Smart Charts**, you can code exactly which data you want and how you want it displayed!

{% hint style="info" %}
You need to be on a [Forest Admin Pro plan](https://www.forestadmin.com/pricing) to have access to this feature.
{% endhint %}

#### Creating a Smart Chart

To create a Chart and access the Smart Chart Editor, click on the **Edit Smart Chart** button:

![](/files/YZ3ODnYRVddg7yIVu1iW)

Next, use the *Template*, *Component,* and *Style* tabs to create your custom Chart. At any point, you can render your chart by clicking on the **Run code** button.

![](/files/Sbky0oFWzMVhQoZEZKjY)

{% hint style="warning" %}
Don't forget to click on **Create Chart** (or **Save** if the Chart is already created) once you're done!
{% endhint %}

{% hint style="info" %}
If you are creating a Smart Chart in the context of a specific record (in the record Analytics tab), the **`record`** object is directly accessible (either through `this.args.record` in the component or `@record` in the template).
{% endhint %}


---

# Agent Instructions: 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:

```
GET https://docs.forestadmin.com/developer-guide-agents-python/frontend-customization/smart-charts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
