> For the complete documentation index, see [llms.txt](https://docs.locoia.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.locoia.com/data-and-dashboards/dashboards-and-insights/charts/stat-card.md).

# Stat Card

## Introduction

The **Stat Card** displays one data point and optionally a value for comparison and the percentage difference of it to the main value:

![Stat Card](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48076285298/original/sBM2wfjeaVSGRq7etzQZKy0gsRyb2sY-VQ.png?1607964872)

## Expected Data and Graph Designer

The Stat chart expects data in a two column format with the title (e.g. "Revenue") in the first column and the value in the second column. If you want to use a comparison value, it should be written into the second row. The percentage difference will be calculated automatically:

| Name    | Amount         |
| ------- | -------------- |
| Revenue | <p>100<br></p> |
| Revenue | <p>90<br></p>  |

The selection of the x-axis in the Graph Designer does not have an effect.&#x20;

You can enable the comparison value by turning on *Show Trend* in the Graph Designer:

![Stat Card - Trend](https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/48076285653/original/MEVYcJYbf6rHPVkJtjL_yTqe7tah8nx6lA.png?1607964946)


---

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

```
GET https://docs.locoia.com/data-and-dashboards/dashboards-and-insights/charts/stat-card.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.
