Scatter chart

A scatter chart shows the relationship between two values (dimensions or measures). Their values are represented as points. A scatter chart always has two axes: the values of one dimension or measure are plotted along the X-axis and those of the other along the Y-axis. A data point that links these two values is displayed at the intersection of the X and Y coordinates. These data points can be distributed along the X-axis evenly or unevenly, depending on specific data.

Use this type of chart if you need to find the dependency between dimensions and measures or show a range of values. For example, the relationship between the average order value and the number of orders for a product.

You can also represent dependencies on a scatter chart using point sizes. The size of a point depends on the measure value: the higher the value, the larger the point size. For example, the size of a point may depend on the discount on a product.

scatter-chart

A slice of two rows from the source table
ProductCategoryAverage order valueNumber of ordersDiscount
Floor cleaner liquidHousehold cleaners153.010
Multicooker with 40 modesHome appliances3442.010
Liquid detergent for colored clothesHousehold cleaners525.010
Carpet detergentHousehold cleaners463.010
Lemon dishwashing liquidHousehold cleaners362.010

You can use a gradient in a chart by adding a measure to the Colors section. For example, the higher the average order value for a product, the darker the point shade.

scatter-chart

Sections in the wizard

Section
in the wizard
Description
XDimension or measure. Sets the X-axis value.
YDimension or measure. Sets the Y-axis value.
PointsDimension. Specifies the number of points on the chart.
Point sizeMeasure. Sets a point size depending on the measure value.
ColorsDimension or measure. Affects the color of points.
SortingDimension. Can only use a dimension from the X-axis. Affects the sorting of the X-axis. The sorting direction is marked with an icon next to the field: ascending or descending . To change the sorting direction, click the icon.
FiltersDimension or measure. Used as a filter.

Creating a scatter chart

To create a scatter chart:

  1. On the DataLens home page, click Create chart.
  2. Under Dataset, select a dataset for visualization. If you do not have a dataset, create one.
  3. Select Scatter chart as the chart type.
  4. Drag a dimension from the dataset to the X section.
  5. Drag one or more measures from the dataset to the Y section. The values will be represented as points at the intersection of the X and Y coordinates.

You can also:

  1. Change the color of points:

    1. Drag a dimension or measure to the Colors section.
    2. Click and set new colors.
  2. Specify an additional dimension. To do this, drag a dimension to the Points section.

Configuring the display of nullvalues

If the source data includes a row where the measure value is null, this point won't be shown on the chart at default settings. For example, if the source includes a row with a date (20.07.2022) but the sales amount is missing for it.

You can use settings for chart sections to show null values:

  1. In the section with a measure whose values you want to show, in the upper-right corner, click (the icon appears when you hover over the section).
  2. In Empty values (null), select Display as 0.
  3. Click Apply.

Now, the chart will use 0 instead of null.

If a row is missing in the source data, the chart section settings won't affect the measure display on the chart. For example, if the source data doesn't have a row with a certain date (20.07.2022), nothing will be shown for this date on the chart.

For more information, see Configuring the display of null values.

Recommendations

  • If the values of the categories contain a large amount of text, try to reduce it. Then the signatures on the diagram will look more accurate. You can use string functions in the calculated fields or conditional operators CASE.

  • The axis scale often varies and may start with a value other than 0. Pay attention to value signatures.
  • A scatter chart isn't suitable for visualization of data over time.
  • When visualizing multiple measures, select colors carefully. They should be distinguishable and contrasting.