# Statistics

1. [Step By Step Process](#id-1.-step-by-step-process)
2. [Demo Video](#id-2.-demo-video)

## 1. Step By Step Process

The analytics-service processes information accessible from the Hedera mirror nodes and collects various statistics

## **1. Configuration**

The service starts by navigating through Hedera structures collecting information from the root ‘topic’ which is specified in the environment variable ***INITIALIZATION\_TOPIC\_ID*** environment variable.

Owing to the high resource load the refresh of the statistical information is performed periodically. The ***ANALYTICS\_SCHEDULER*** environment variable allows to specify the time period. By default the refresh occurs weekly.

## 2. Launching UI Statistics

The docker command used to launch Statistics in [localhost:3000](http://localhost:3000/) is

```
docker-compose -f docker-compose-analytics.yml up -d --build
```

## **3. UI**

By default the system loads the data of the last successful refresh, and the delta with the prior refresh (if exists).

The UI allows users to select a particular prior snapshot of the data instead of the default last refresh.

![image1.png](https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-24c92036a98c63e2eaad8c3ca3ec5307738891ba%2F0%20\(6\)%20\(1\).png?alt=media)

The top part of the page displays numerical statistics of the selected data snapshot (‘refresh’) and

the bottom part of the UI displays top 10 records for the selected statistic.

<figure><img src="https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-44c1aec26f7638e85d0477c98094fd4b8de83c1b%2F1%20(8)%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>

The sorting criteria can be changed by clicking on the statistics displayed in the top section of the page, or by selecting an option in the drop down list.

<figure><img src="https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-ed90a3996648317b3b2d3b9bf39c5a5312b183ae%2F2%20(7)%20(1)%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-082b08082718424ee505e5550d26b6952dadaf59%2F3%20(7)%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-71ac5595727f40130b28201d212456ef2e676879%2F4%20(6).png?alt=media" alt=""><figcaption></figcaption></figure>

The latest statistical refers can be exported in the format of the Excel file by clicking on the ‘Export’ button in the corresponding section of the UI.

{% hint style="info" %}
**Note:** The system exports the current state of the statistical data, not the selected refresh.
{% endhint %}

## 2. Demo Video

[Youtube](https://youtu.be/e6U68FtEbG8?si=vmIw7XY8Box_G3o4\&t=330)
