> ## Documentation Index
> Fetch the complete documentation index at: https://axiom.co/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Statistic

> This section explains how to create statistic dashboard elements and add them to your dashboard.

export const elementName_0 = "statistic"

export const elementButtonLabel_0 = "Statistic"

Statistics dashboard elements display a summary of the selected metrics over a given time period. For example, you can use a statistic dashboard element to show the average, sum, min, max, and count of response times or error counts.

## Prerequisites

* [Create an Axiom account](https://app.axiom.co/register).
* [Create a dataset in Axiom](/reference/datasets) where you send your data.
* [Send data](/send-data/methods) to your Axiom dataset.
* [Create an empty dashboard](/dashboards/create).

## Create {elementName_0}

1. Go to the Dashboards tab and open the dashboard to which you want to add the {elementName_0}.
2. Click <Icon icon="plus" iconType="regular" /> **Add element** in the top right corner.
3. Click **{elementButtonLabel_0}** from the list.
4. Choose one of the following:
   * Click **Builder** to create your chart using a visual query builder. For more information, see [Create chart using visual query builder](/dashboard-elements/create#create-chart-using-visual-query-builder).
   * Click **APL** to create your chart using the Axiom Processing Language (APL). Create a chart in the same way you create a chart in the APL query builder of the [Query tab](/query-data/explore#create-a-query-using-apl).
5. Optional: [Configure the dashboard element](/dashboard-elements/configure).
6. Click **Save**.

The new element appears in your dashboard. At the bottom, click **Save** to save your changes to the dashboard.

## Example with Builder

<Frame>
  <img src="https://mintcdn.com/axiom/6UXjyyx-ZiWeEcux/doc-assets/shots/simple-chart-statistic-1.png?fit=max&auto=format&n=6UXjyyx-ZiWeEcux&q=85&s=ff1870d9063246dc72ed949e2e172aeb" alt="Statistic example with Builder" width="1428" height="1200" data-path="doc-assets/shots/simple-chart-statistic-1.png" />
</Frame>

## Example with APL

```kusto  theme={null}
['sample-http-logs']
| summarize avg(resp_body_size_bytes)
```

<Frame>
  <img src="https://mintcdn.com/axiom/hZaY6OinxsdbIvKF/doc-assets/shots/apl-chart-statistic-2.png?fit=max&auto=format&n=hZaY6OinxsdbIvKF&q=85&s=7c59dc0fc76b930851d2146936b33dae" alt="Statistic example with APL" width="1433" height="1206" data-path="doc-assets/shots/apl-chart-statistic-2.png" />
</Frame>


Built with [Mintlify](https://mintlify.com).