# 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="/files/MMfFlwd6wN7h0Lg7lppz" 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="/files/Ufwrn5OjtKKR3WohUlrD" 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="/files/3oLYbxEeS3wU69A5BZiq" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/wFnH8BHXncosjcszrEGA" 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 %}


---

# 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.av-scripts.com/laptop-pack-v3/business/config/overview-chart.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.
