Skip to content
Stand with Ukraine flag

Visualize Anomaly Data

Trendz provides three approaches for visualizing anomaly data, suited to different use cases:

ApproachWhen to use
Anomaly ViewPlug-and-play visualization — no configuration required.
Anomaly FieldsFlexible custom views; anomaly data queried directly from the model.
Business Entity FieldsFine-grained control when anomaly scores are saved to ThingsBoard.

The Anomaly View is a pre-built view type dedicated to anomaly visualization. It provides the same functionality as the Result tab in the anomaly model, but as a standalone view that can be embedded in a ThingsBoard dashboard widget like any other Trendz view.

To create an Anomaly View, click Create View and select Anomalies from the dropdown. The Anomaly View dialog opens — select an existing anomaly model from the list.

Click OK to confirm.

The view opens with the selected model pre-loaded. Click Build report in the top-right corner to load anomaly data for the configured time range.

Available settings:

SettingDescription
Default Anomaly SelectionWhich anomaly is highlighted when the view opens: last or max score index.
Hide Anomalies ListRemoves the anomaly list table from the view.
Hide Anomalies ChartRemoves the anomaly chart from the view.
Time RangeTime range used for the view.
FiltersWhich items are shown in the view.

To add the Anomaly View to a ThingsBoard dashboard, use the Share button in the top-right corner of the view. See Add View on Dashboard for step-by-step instructions.

Anomaly Fields are building blocks for constructing custom anomaly visualizations inside any Trendz view — line chart, bar chart, card, and others. They query anomaly data directly from the model without requiring scores to be saved to ThingsBoard. Multiple Anomaly Fields from different models can be added to the same view.

In any Trendz view, locate the ANOMALY field category in the left panel and drag a field onto the target axis. The following examples use a Line chart, but the same steps apply to any view type.

After dropping the field, a configuration popup opens. Set the Anomaly type, select the Model, choose an Aggregation, and enter a Label. Use MAX to capture peak anomaly intensity at each time point.

To count anomaly occurrences within each time bucket, change Aggregation to COUNT.

Field properties:

PropertyOptionsDescription
AnomalySCORE, SCORE_INDEXWhich metric to visualize.
Model(list of READY models)The anomaly model to source data from.
AggregationAVG, MIN, MAX, SUM, COUNT, LATEST, UNIQHow values are combined across time or entities.
LabeltextField name shown in the chart legend.
Chart Typebar, line, areaVisual representation style.

Aggregation guidance:

SCORE measures anomaly intensity at a point in time:

AggregationSuitability
MAXRecommended — captures peak intensity
LATESTRecommended — shows the most recent value
COUNTRecommended — counts anomaly occurrences
SUM, AVG, MIN, UNIQNot recommended — lose meaningful signal

SCORE_INDEX measures cumulative anomaly impact over time:

AggregationSuitability
SUMRecommended — shows total anomaly footprint
COUNTRecommended — counts anomaly occurrences
UNIQRecommended
LATESTRecommended
AVG, MINAcceptable but less sensitive

When anomaly score saving is enabled for the model, ThingsBoard stores anomaly scores as regular device telemetry. These can then be added to any Trendz view as Business Entity Fields — the same as any other telemetry key.

The saved anomaly fields appear in the left panel under their business entity, named after the model. They can be added to any view type the same way as any other telemetry field. The example below uses a Pie chart to compare score index totals across devices.

GoalUse
Quick visualization with no configurationAnomaly View
Build a flexible custom view across devicesAnomaly Fields
Count anomaly occurrences per time periodAnomaly Fields with COUNT aggregation
Visualize saved scores with precise controlBusiness Entity Fields