Scatter plot widgets
The scatter plot widget is often used to visualize the correlation between two variables as it depicts points in a two-axis diagram at the intersection of their values. This is very useful to spot trends easily and analyze matrix variables because you can see at a glance the overall distribution of the different data combinations.
What data do I need for this widget?
The source query must contain columns with at least two numerical values, which will be automatically recognized and displayed in the diagram. If the query contains more than two, the first two will be selected automatically although you can change the selection in the widget's visual settings, as explained below.
Widget settings
To edit the widget settings, you must first be in Edit mode.
Click the widget title bar to open its settings. Alternatively, the settings are accessible via the Ellipsis icon → Edit. The widget settings are contained in three tabs, Data, Visual, and Raw.
The settings in the Data and Raw tabs are described in the Create a widget article, while the Visual settings are explained below:
Category | Setting | Description |
---|---|---|
Fields | X-Axis (Number) | This is the field whose values are used to plot the x-axis. It must be a metric so only numeric values will be shown in the dropdown for you to select. |
Y-Axis (Number) | This is the field whose values are used to plot the y-axis. It must be a metric so only numeric values will be shown in the dropdown for you to select. | |
Series | Choose a field from the drop-down that will be used to shape and color the plotted values according to their corresponding values in the field selected. This drop-down will show all the fields in the query. | |
Legend | Legend horizontal alignment | Select the horizontal alignment of the legend that indicates the different series. Choose center, right or left. |
Legend vertical alignment | Select the vertical alignment of the legend. Choose bottom, top or middle. | |
Legend layout | Select the layout alignment of the legend, which changes the margin of the chart at which the legend is placed. Choose horizontal or vertical and depending on the horizontal-vertical combination selected before the chart will be resized and relocated consequently. | |
Size | The range of values ​​(from 16px to 320px). |
Tips for using a scatter plot chart
Here are a few tips to get the most out of your scatter plot chart:
Hover over a point on the chart to view a tooltip with the variables and their values.
Click and drag to delimit an area to zoom in on and the chart will show only those values included inside. Click the Reset zoom button that appears at the top right to go back to the default visualization.
Hover over a data series in the chart legend to dim the rest of them down in the chart or click it to hide it or show it. You can also click the Hide all Series/Show all series button at the top right corner to hide/show all the series in the chart.
Query example
This is the source query used and the fields mapped to generate the widget shown above:
query(from siem.logtrust.web.activity)
X-axis | srcPort |
---|---|
Y-axis | responseLength |
Series | method |