# 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="https://2494440469-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fggsr9Xlsze5cwVr4WMof%2Fuploads%2FNLbGGAVJtNZwZJTQCs4w%2Flog-chart-1.png?alt=media&#x26;token=2d08d0e2-b66b-4299-8844-3c8da1d6b172" 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="https://2494440469-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fggsr9Xlsze5cwVr4WMof%2Fuploads%2FMdSKK0fVK2tJKUKCjyxY%2Fimage.png?alt=media&#x26;token=13f744ed-166b-4848-bd3e-4cc84bc24a70" alt=""><figcaption></figcaption></figure>
