# Log Chart

The **Log Chart** widget allows you to display one or more data fields on a line or bar chart, and it enables you to download the historical data as a **CSV** file.

In the **Widget options** modal, configure the following:

In the **Name** text box, enter a **name** to identify the **log chart** within the dashboard.

In the **Data field** drop-down, select the **data field** that you want to display on the chart. You can add more **data fields** to the chart by clicking on the **+** button. You can also apply different colors to data fields by choosing a color from the color picker associated with each.

In the **Chart type** drop-down, select either **Line** or **Bar** as the chart type.

To add a **color** to the **background** of the widget, click on the **Background color** box and choose a **color** from the **color picker**.

Click on the **Save** button.

<figure><img src="/files/jVed64DsKaop5m0z207c" alt="" width="327"><figcaption></figcaption></figure>

The resulting **Log Chart** widget looks like this: Click on the **Get Report** button to download the historical data as a CSV file.

<figure><img src="/files/8Pyo6r7Mis8CwL46nNBt" alt=""><figcaption></figcaption></figure>


---

# 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.widgelix.com/get-started/widgets/log-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.
