Scatter plot
This section explains how to create scatter plot dashboard elements and add them to your dashboard.
Scatter plots are used to visualize the correlation or distribution between two distinct metrics or logs. Each point in the scatter plot could represent a log entry, with the X and Y axes showing different log attributes (like request time and response size). The scatter plot chart can be created using the simple query builder or advanced query builder.
For example, plot response size against response time for an API to see if larger responses are correlated with slower response times.
Prerequisites
- Create an Axiom account.
- Create a dataset in Axiom where you send your data.
- Send data to your Axiom dataset.
- Create an empty dashboard.
Create a dashboard element
- In the sidebar, click Dashboards and open the dashboard to which you want to add the scatter plot.
- Click Edit dashboard.
- Click Add element in the top right corner.
- Select Scatter from the Add element menu (under Chart > Chart aggregation or Data).
- Choose one of the following:
- Click Builder to create your chart using a visual query builder. For more information, see Create chart using visual query builder.
- Click Editor to create your chart using the Axiom Processing Language (APL). Create a chart in the same way you create a chart in the Editor.
- Optional: Configure the dashboard element.
- Click Save.
The new element appears in your dashboard. In the page header, click Save dashboard to save your changes to the dashboard.
In the element type menu, select Chart aggregation, then Scatter.
This element does not support metrics datasets.
Example with Builder
Select sample-http-logs, add avg(req_duration_ms) and avg(resp_header_size_bytes), and group by resp_body_size_bytes. Each point represents the two averages for a response body size.

Example with APL
