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

![](https://2921382565-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HgnlEINLUAEQC1KgN48%2Fuploads%2Fgit-blob-5a23c5870c9909abb7ea431e866fb013995328b8%2Fsmart-chart-create.png?alt=media)

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.

![](https://2921382565-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HgnlEINLUAEQC1KgN48%2Fuploads%2Fgit-blob-02aceec47aefa42458cb2bbe823b0980f6f0d82b%2Fsmart-chart-code.png?alt=media)

{% 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 %}
