4 min readUpdated Mar 2, 2026

StatTile Documentation

Overview

The StatTile component is a powerful visualization tool within the Vantage analytics platform that provides users with an at-a-glance view of key metrics. This component supports multiple data visualizations such as big numbers, comparisons against targets, and visual trends through sparklines. StatTile is suitable for dashboards and analytics interfaces where recognition of performance indicators is crucial.

Purpose

The primary function of StatTile is to encapsulate a metric (primary measure), provide contextual comparisons, and render this data visually. It fetches data from workflows, performs calculations according to specified settings, and updates the interface dynamically based on user interaction and data changes.

Data Expectations

StatTile expects the following data structure:

Settings

Primary Measure

Comparison

Sparkline

Health

Workflows

Visualization Type

Use Cases & Examples

Use Case 1: Sales Performance Monitoring

A company may use StatTile to display the latest sales figures (primary measure) along with a comparison to last month's target sales. This provides immediate insight into performance and progress.

Use Case 2: Operational Health Dashboard

In operational contexts, StatTile can be employed to show the health of system metrics (like server uptime) with critical and good status ranges highlighted. By integrating health comparisons, it enhances alertness for fallback thresholds.

Example Configuration

For a sales dashboard, the StatTile might be configured like this:

json
{
  "primaryMeasure": {
    "field": {
      "workflowId": "sales_workflow",
      "field": "current_sales",
      "label": "Current Sales"
    },
    "aggregation": "sum",
    "format": "currency"
  },
  "comparison": {
    "enabled": true,
    "type": "target",
    "targetField": {
      "workflowId": "sales_workflow",
      "field": "target_sales"
    },
    "display": "absolute"
  },
  "sparkline": {
    "enabled": true,
    "dateField": {
      "field": "sales_date"
    }
  },
  "health": {
    "enabled": true,
    "critical": 1000,
    "good": 5000,
    "target": "background"
  },
  "workflows": ["sales_workflow"],
  "visualizationType": "bignumber"
}

In this example, the StatTile is configured to show the cumulative sales figure from a specific workflow, provide an absolute comparison against a target sales figure, and incorporate a sparkline of sales trends over time while indicating health status with visual cues based on predefined thresholds.