# @formats

## Quick Reference

```sql
-- @formats: integer, currency 
```

## Valid Values

`List`

@formats must be a comma separated list of formats that map to the columns used within the @series or @secondary-series

* none
* integer
* currency
* percent

## Full Example

```sql
-- @chart: bar
-- @title: Bar Chart With Formats
-- @subtitle: An example bar chart with formats
-- @formats: currency
SELECT 
Channel,
sum(Amount) as Total_Sales
FROM Sales
WHERE Status = 'Won'
GROUP BY Channel
ORDER BY Total_Sales DESC;
```

<figure><img src="/files/jAroCTyrwHnEYAM3HJku" alt=""><figcaption><p>An example bar chart with currency formatting applied to the series</p></figcaption></figure>

## Use Cases

Formats allows you to visually improve the look of number data in your charts to be more clear and visually appealing.

## Example Charts

<table data-card-size="large" data-view="cards"><thead><tr><th data-card-target data-type="content-ref"></th><th data-hidden></th><th data-hidden></th><th data-hidden></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td><a href="/pages/41ZFw9Jp5ut2mspSKZHa">/pages/41ZFw9Jp5ut2mspSKZHa</a></td><td></td><td></td><td></td><td><a href="/files/jAroCTyrwHnEYAM3HJku">/files/jAroCTyrwHnEYAM3HJku</a></td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr></tbody></table>


---

# 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.chartsql.com/reference/directives/baselines-1.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.
