> For the complete documentation index, see [llms.txt](https://docs.wem.io/platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wem.io/platform/wemtipsandtricks/widgets/advanced-charts/scatter-chart.md).

# Scatter Chart

Scatter Chart uses dots to represent values for two different numeric variables. The position of each dot on the horizontal and vertical axis indicates values for an individual data point. Scatter plots are used to observe relationships between variables.

{% hint style="info" %}
You can find a more in depth explanation about the scatter on [this](<https://echarts.apache.org/examples/en/editor.html?c=scatter-simple >) page: [https://echarts.apache.org/examples/en/editor.html?c=scatter-simple ](<https://echarts.apache.org/examples/en/editor.html?c=scatter-simple >)
{% endhint %}

![Scatter Simple](/files/O1YeAEb2AbR9xNUquc1N)

**Properties of Scatter Chart**

<table data-header-hidden><thead><tr><th width="193.87050359712228"></th><th width="150"></th><th width="150"></th><th></th></tr></thead><tbody><tr><td><strong>Property Name</strong></td><td><strong>Data type</strong></td><td><strong>Type</strong></td><td><strong>Description</strong></td></tr><tr><td>Data source</td><td>List</td><td>Data Model</td><td>Data list source for the widget.</td></tr><tr><td>X axis type</td><td>Text</td><td>Dropdown</td><td>Determines the type of X axis used.</td></tr><tr><td>X axis category</td><td>Text</td><td>Expression</td><td>Categories displayed on x-axis.</td></tr><tr><td>X axis date</td><td>Date</td><td>Expression</td><td>Date values displayed on x-axis.</td></tr><tr><td>Y axis value</td><td>Number</td><td>Expression</td><td><p>Values displayed on y-axis.</p><p>These are expected to be numeric values.</p></td></tr><tr><td>Series</td><td>Text</td><td>Expression</td><td><p>This field is used to create different series from the same data source.</p><p>It's not required.</p></td></tr><tr><td>Series color</td><td>Text</td><td>Expression</td><td><p>This field is used to set the color of the series. If empty a random color will be selected.</p><p>Hexadecimal Colors format Ex.: "#2E93fA"</p></td></tr><tr><td>Logarithmic scale</td><td>Boolean</td><td>Expression</td><td>Change scale to logarithmic scale.</td></tr><tr><td>Custom scale</td><td>Boolean</td><td> </td><td>Change scale to a custom scale with custom properties.</td></tr><tr><td>Use opposite scale</td><td>Boolean</td><td>Expression</td><td>Changes position of y axis values to the opposite position.</td></tr><tr><td>Max scale value</td><td>Number</td><td>Expression</td><td>Maximum value for the scale.</td></tr><tr><td>Min scale value</td><td>Number</td><td>Expression</td><td>Minimum value for the scale.</td></tr><tr><td>Tick scale amount</td><td>Number</td><td>Expression</td><td>Number of visual ticks for the scale on the vertical axis.</td></tr><tr><td>Marker size</td><td>Number</td><td>Expression</td><td><p>Size of the marker point (dot).</p><p>Default: 5</p></td></tr><tr><td>Show tooltip</td><td>Boolean</td><td>Expression</td><td>Show tooltip. Use true or false.</td></tr><tr><td>X axis tooltip</td><td>Boolean</td><td>Expression</td><td>Show x-axis tooltip.</td></tr><tr><td>Label decimals</td><td>Number</td><td>Expression</td><td>Set number of decimals displayed for y-axis values.</td></tr><tr><td>Theme</td><td>Text</td><td>Dropdown</td><td>Change the text and background colors of the chart. (Light, dark).</td></tr><tr><td>Background color</td><td>Text</td><td>Expression</td><td><p>Change the background color of the chart. It's important to set the opacity with the color to show the gridlines.</p><p>Examples:</p><p>"#FFFFFF60" or "rgba(255, 255, 255, 0.6)"</p></td></tr><tr><td>Display vertical grid lines</td><td>Boolean</td><td>Expression</td><td>Display vertical grid lines.</td></tr><tr><td>Display horizontal grid lines</td><td>Boolean</td><td>Expression</td><td>Display horizontal lines on the grid.</td></tr><tr><td>Grid lines color</td><td>Text</td><td>Expression</td><td><p>Change color of the lines on the grid.</p><p>Example:</p><p>"#92a8d1" or "red" or "rgb(201, 76, 76)" or "rgba(201, 76, 76, 0.3)"</p></td></tr><tr><td>Legend font size</td><td>Number</td><td>Expression</td><td>Change font size of the legend.</td></tr><tr><td>Legend position</td><td>Text</td><td>Dropdown</td><td>Change position of the legend. (Bottom, top, left, right).</td></tr><tr><td>Fill type</td><td>Text</td><td>Dropdown</td><td>Change fill type of the chart. (Solid, gradient, pattern).</td></tr><tr><td>Fill opacity</td><td>Number</td><td>Expression</td><td><p>Change the fill opacity of the chart.</p><p>From 0.00  to 1.00</p></td></tr><tr><td>Prefix</td><td>Text</td><td>Expression</td><td>Display a prefix for values on tooltip.</td></tr><tr><td>Postfix</td><td>Text</td><td>Expression</td><td>Display a postfix for values on tooltip.</td></tr><tr><td>Show animation</td><td>Boolean</td><td>Expression</td><td>Display animation on render.</td></tr><tr><td>Height</td><td>Number</td><td>Expression</td><td><p>Set height of the chart.</p><p>Type number.</p></td></tr><tr><td>Width</td><td>Number</td><td>Expression</td><td><p>Set width of the chart.</p><p>Type number.</p></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.wem.io/platform/wemtipsandtricks/widgets/advanced-charts/scatter-chart.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
