Skip to main content
Version: 5.3

Single Value

Overview

single value

Single Value is a type of data visualization that focuses on displaying and emphasizing a single numeric value or metric. This approach to data visualization is particularly effective in situations where a specific metric needs to be presented quickly and clearly. Using a metric allows you to focus on one key indicator, minimizing noise and allowing users to quickly understand key trends or achievements.

One of the benefits of using a metric is its simplicity and clarity. Visualizing a single numeric value is usually done with a simple representation of the number and additional displays such as, a graph of the change in value, a trend, and a trend graph.

Settings Single Value

Settings

The Single Value has the following set of parameters in the Settings tab:

ParameterDescriptionJSON Field
Metric LabelOptional field for the metric name — the text displayed below the value. Dashboard token values can be substituted.general.label
Value FieldRequired field for the metric value to be displayed (a column from the query results).general.fieldForValue
Align to centerCheckbox controlling column content alignment: when enabled, values are centered (default); when disabled, they are left-aligned.general.isCentered
Type of ValueToggle for selecting the type of value to display. Default is numeric. Affects field display: choosing the numeric type enables the Delimiter, Units of measurement, Shorten large numbers, parameters, as well as trend fields and the Show Trend option. The String option does not display a trend chart.general.valueType
DelimiterAllows selecting a thousands separator symbol for number formatting (period, space, or comma). For example, for the number 1234567 with a comma selected, the result will be 1,234,567. Works only for numeric values.show.delimiter
Units of measurementAllows entering units of measurement to be displayed next to the visualization name, separated by a middle dot (e.g. Name • pcs). Works only for numeric valuesshow.suffix
Shorten Large NumbersConverts large numbers into a more readable format with abbreviated units (e.g., 1500 → «1.5 K», 2000000 → «2 M»). Works only for numeric valuesgeneral.shortenBigNumbers
IconAllows adding an icon before the main value of the visualization.icon
Field for trendOptional field responsible for displaying the metric's change trend.general.fieldForTrend
Trend Units Selection FieldОDefines the units for displaying the trend — as a percentage or in absolute units.general.trendUnit
Show Trend SparklineEnables or disables the display of the trend chart for the visualization. Works only for numeric valuesshow.sparkline

These parameters are applied to the visualization as follows:

  1. Metric Label (label)
  2. Units of measurement (suffix)
  3. Trend Indicator (depends on fieldForTrend,trendUnit)
  4. Icon — image before the value (icon)
  5. Trend — displayed chart (depends on valueType and sparkline)
  6. Main Value (fieldForValue)
  7. Delimiter (delimiter)
  8. Abbreviated suffix for large number conversion (shortenBigNumbers)

Show

The Single Value has the following set of parameters in the Display tab::

ParameterDescriptionJSON Field
Color SettingsAllows selecting what the color settings apply to — the Value or the Trend.color.isRange
Color Palette Settings FieldAllows defining a set of color rules — by ranges for numeric values or by specific values for strings. Works only in Value modecolor.color
TargetDefines what the color is applied to when a condition is met: the background or the value. Works only in Value modecolor.invert
Direction ColorDefines the color scheme for trend indicators. The classic palette is applied by default. The reversed trend palette works only in Trend mode.color.indicatorColor

Display in Value Mode

Chart in Target with Text Palette mode

Chart in Target with Background Palette mode

Display in Trend Mode (default and reversed palette)

Chart in Trend mode by default

Drilldown

The Single Value has the following set of parameters in the Drilldown tab:

ParameterDescriptionJSON Field
Drilldown TypeAllows selecting the type from the list: Search, Custom URL и Token Control. Defines the visualization's behavior on click. The following options are available:

Search — if a search query is specified on the visualization card, a link icon is displayed in the top right corner. Clicking anywhere on the card navigates to the search page, with the search bar automatically populated with the specified query.

Custom URL — when a custom URL is provided, a link icon is displayed. Clicking navigates to the specified address.

Token Control — clicking changes the values of dashboard tokens.
drilldown.drilldownType
SearchField for specifying the search query. Works only in Search mode.drilldown.drilldownQuery
Time FilterAllows selecting and configuring a filter by time interval. Works only in Search mode.drilldown.drilldownSelectTimeToken
Custom URLField for setting a custom link. Works only in Custom Link modedrilldown.drilldownText
Add TokenAllows specifying a list of dashboard tokens and their values. Each token is specified as a name-value pair. Works only in Dashboard Token Change modedrilldown.drilldownTokens

These parameters are applied to the visualization as follows:

Tooltip for links

note

Hovering over the link icon displays a tooltip containing the full text of the link or search query.

Single Value creation

To create this type of visualization, it is worth using a query that returns an aggregation. It can be the number of some values, sum, number of unique values, and so on. SAF provides several aggregation commands. For the Single Value type, stats, timechart, aggs, timeaggs is considered.

The following is an example of a query with this command:

source windows_events
| aggs count(event.action)

If you go to the Visualization tab. By default (if the query does not use timeaggs and timechart) you will see the Tabular view of the visualization:

In the first dropdown list, you must select Single Value. After changing the parameter, an empty rectangle will be displayed, because no parameters are set. Below you need to specify the mandatory parameter Field for value, from the dropdown list you select the field, for example: count(event.action). The result will be as follows:

Now you can add this visualization to a dashboard by creating it or selecting an existing one. To do this, click the Add to dashboard button.

After that, you need to click the Save button. The visualization has been created and added.