# Scatter Plot

The **scatter plot** widget displays the relationship between two numerical data fields, which is useful for identifying patterns, trends, and correlations between variables. Each data point is represented by a dot or marker on the graph. The horizontal axis typically represents the independent variable, while the vertical axis represents the dependent variable.

In the **Widget option**s modal, configure the following settings:

In the **Last from text** box, select or type in the **timeframe** that you want to display data on the chart.

In the **X axis data field** drop-down, select the **data field** that you want to represent on the **X-axis**.

In the **Y axis data field** drop-down, select the **data field** that you want to represent on the **Y-axis**.

Click on the **Plot color** box and choose a color from the color picker for the **data markers**.

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/04X5CwxahDFo4hIpe6QP" alt="" width="327"><figcaption></figcaption></figure>

The resulting **scatter plot** widget looks something like this:

<figure><img src="/files/o0gxlmpaodmOc3qgpf1x" alt="" width="563"><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/scatter-plot.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.
