Dashboard widget types
Each dashboard widget shows the result of one ThreatVIS PPL query. The chart type you choose in the Configuration panel decides how the result is drawn, and most types need the query to return a particular shape. The panel checks this while you work. See Configure a widget.
Chart types
| Chart type | What it shows | What the query must return | Field groups |
|---|---|---|---|
| Bar | A bar for each category | One category column and one number column, for example stats count() by <field>. | Horizontal axis, Vertical axis, Breakdown (optional) |
| Line | A value over time | A time column, for example timechart span=<interval> count(). Add by <field> for one line per value. | Horizontal axis, Vertical axis, Breakdown (optional) |
| Metric | One large number, optionally with a trend or a comparison | A single number with no grouping, for example stats count(). | Primary metric, Secondary metric, Maximum value, Break down by (all optional except the first) |
| Table | The result as a table | Nothing in particular. | Rows, Split metrics by, Metrics (all optional) |
| Event list | The matching events as rows | Nothing in particular. Add fields to choose the columns. | Columns (optional) |
| Pie | Shares of a whole | One category column and one number column. | Slice by, Metric |
| Gauge | One number on a gauge | A single number with no grouping. | Metric, and optionally Minimum value, Maximum value and Goal value |
| Heat map | A grid shaded by value | Two category columns and one number column. | Horizontal axis, Vertical axis, Cell value |
| Region map | Events counted by country | Nothing in particular. You choose the IP field; the dashboard resolves it to a country. The default field is host.ip. | The IP field |
| Treemap | Nested rectangles sized by value | At least one category column and one number column. Add a second by field for a drill-down treemap. | Group by, Metric |
| Grouped bar | Several bars for each category, side by side | One category column and two or more number columns, for example stats count() as a, count() as b by <field>. | Horizontal axis, Vertical axis |
| Stacked bar | The same values stacked in one bar | One category column and two or more number columns. | Horizontal axis, Vertical axis |
| Sankey | Flows between two categories | Two category columns and one number column, for example stats count() by <field1>, <field2>. | Source, Target, Value |
| Scatter | Points on two number axes | Two number columns, for example stats count() as a, dc(<field>) as b by <group>. | Horizontal axis, Vertical axis, Group by (optional) |
When you pick a type, the panel runs your query and compares the result with this table. For the types that need a shape, a mismatch shows a message and Apply and close stays unavailable. For Table, Event list and Region map there is no check. A dashboard installed or saved before this editor keeps its chart types, and its earlier names map to these: Time Chart is Line, Single Value is Metric, World Map is Region map, Pie Chart is Pie and Bar Chart is Bar.
Metric options
Choosing Metric adds these options. Open Style (the style icon at the top right of the panel) for most of them. Gauge has none of them.
| Option | What it does |
|---|---|
| Auto-refresh | How often the number is read again: Off, 30 seconds, 1 minute, 5 minutes, 15 minutes or 30 minutes. |
| Font size | The size of the number, for example 48. |
| Font color | The colour of the number. |
| Background color | The colour behind the number. |
| Show trend | Draws a small trend line under the number. It re-runs the same query as a time series over the time range on screen. |
| Color by threshold | Turns on a threshold. When it is on, you also set the Threshold, the Background color above the threshold and Blink above the threshold. |
With Color by threshold on, the card takes the Background color above the threshold whenever its number is greater than the Threshold, and uses the base Background color otherwise. Blink above the threshold makes the card flash in that colour while the number is above the threshold.
Many Metric cards in the ready-made dashboards compare their number with the previous period. See Build a dashboard.
Next steps
- Configure a widget: choose a type and set its fields.
- Build a dashboard: add these widgets to a dashboard.
- ThreatVIS PPL basics: write the queries behind them.