# Overview Chart

> This function displays a chart showing the business activity over the past **7 days**.\
> By default, the tracked transactions include:
>
> * Sells
> * Deliveries
> * Supplies Bought
> * Paid Invoices
>
> However, you can also add your own custom types, such as:
>
> * Tuned Vehicles
> * Treated Patients
> * or any other you can think of...

<figure><img src="https://1688068901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9bCwnajAqpi3Viykb5Wi%2Fuploads%2FbAc1o7H1lwkjvbGLYbUj%2Fimage.png?alt=media&#x26;token=15a1e84f-3119-4447-9255-1a347e67b214" alt=""><figcaption></figcaption></figure>

### Custom Transactions

> * To register a new type go to `config/_overview.lua`&#x20;
> * Here you will find a table with the default transactions, for this example we are adding a new one named **Tuned Vehicles**:

<figure><img src="https://1688068901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9bCwnajAqpi3Viykb5Wi%2Fuploads%2F4bEZ9BnDpDIQbO4g51Kb%2Fimage.png?alt=media&#x26;token=eee4633d-4b5e-4df9-9c9b-14f26099c74e" alt=""><figcaption></figcaption></figure>

* **name**:`string` - This is an unique identifier, keep it simple.
* **label**:`string`  - Label to display when hover it.
* **color**:`string` - The color used for this data, use HEX values.

> Now we need to trigger the following export from our own resource:

### addTransaction(business,name,amount)

> **params:**
>
> * **business**:`string` The job name ("police", "ambulance", "mechanic", etc....)
> * **name**:`string` The transaction name (NOT label).
> * **amount**:`number` The amount of transactions to add (1 by default)

> Since we are doing an example for **Tuned Vehicles**, we want to trigger the export from **av\_tuning**, go to `av_tuning/server/framework/_framework.lua > line 72`, add the export inside function **ProcessPayment**, after all the Society logic, _something like this_:

<figure><img src="https://1688068901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9bCwnajAqpi3Viykb5Wi%2Fuploads%2F1ZHcWQhGSg9iHkNgUkzX%2Fimage.png?alt=media&#x26;token=8be13540-13a9-4dbc-a462-d967bebc7517" alt=""><figcaption></figcaption></figure>

> Now, your new transaction should look something like this after some uses:

<figure><img src="https://1688068901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9bCwnajAqpi3Viykb5Wi%2Fuploads%2FyUmMxEjYdyETfXWWDSnO%2Fimage.png?alt=media&#x26;token=42b11f11-dfed-4fbc-ae8c-d22048b161ab" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Please note that this guide is just an example. You should trigger the export from your own resource—wherever you want to track the business transaction.
{% endhint %}
