> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cube.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Scatter

> Plot two measures against each other to find correlations, clusters, and outliers.

Scatter charts plot individual data points using two measures as X and Y coordinates. Use them to explore relationships between measures, identify clusters, and spot outliers across a population of entities.

[Scatter charts in Cube](https://www.youtube-nocookie.com/embed/s4zR9YeT5e0)

## Variants

### Basic scatter

Two measures on the X and Y axes. By default, each row in your result set becomes one point. See [Points](#points) to plot one point per dimension value.

### With color grouping

Map a dimension to the **Color** channel to assign each point a color by category. Use this to compare how different groups distribute across the same two measures.

### With size encoding

Map a third numeric measure to the **Size** channel to scale each point's radius by value. Use this to encode a third variable without adding a new axis.

## Points

In the **Points** section of the Fields tab, **One point per** sets what each point stands for:

* **Each row** — each row of the result set is one point. This is the default.
* One or more dimensions — the rows that have the same values of these dimensions combine into one point. Values of `count` and `sum` measures are summed, and values of `min` and `max` measures take the smallest or largest value. Other measures, such as averages or distinct counts, can't be combined: the chart shows a notice that asks you to remove the extra dimensions from the query or add them to the chart.

A dimension set as a measure's **Break down by** field (see [Series configuration](https://docs.cube.dev/docs/explore-analyze/charts/configuration/series-configuration.md)) always splits the points. It stays selected in **One point per** while you pick other dimensions.

Every measure on a scatter chart is drawn as points. Its mark type is always **Point**.

## Size encoding

Assign a measure to the **Size** channel in the Fields tab. Points scale proportionally to the measure value.

In the **Size** section of the Style tab:

* **Smallest point radius** and **Largest point radius** set the radius range, in pixels.
* **Size legend** shows or hides the legend for point sizes. It is available only while the chart legend is on.

## Tooltips

All mapped fields appear in the tooltip by default. Add or remove fields in the **Tooltips** section of the Fields tab.

See [Tooltips](https://docs.cube.dev/docs/explore-analyze/charts/configuration/tooltips.md) for details.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.