DocumentationNuxt Charts v3

Status Tracker

A component to visualize the status of a service over a period of time.

Use StatusTracker to display status history, ordered oldest to newest. It requires Vue and Tailwind CSS and inherits Nuxt UI colors when available. Pass the history and optional header labels; the component does not fetch data or calculate uptime.

Example

Here's an example of the StatusTracker in action, monitoring a fictional service.

api.example.com99.9% uptime
90 days agoToday
Learn how to use the Nuxt Charts CLI to get premium components.

Props

PropTypeDefaultDescription
bar-widthnumber4Width of each status bar
bar-gapnumber1Gap between status bars
operational-statusbooleanundefinedCurrent operational status
domainstringundefinedDomain being monitored
uptimestringundefinedUptime percentage display
status-dataStatusItem[]RequiredArray of status objects with status property
barHeightnumber28Bar height in pixels.
startLabel / endLabelstringundefinedOptional history boundary labels.
statusColorsRecord<string, string>Built-in semantic colorsOverride colors for built-in or custom statuses.
showTooltipbooleantrueShow native bar tooltips.
tooltipFormatter(bar: StatusItem) => stringItem label, then statusCustom tooltip text.
labelstring'Status history'Accessible name for the history.
uptimeLabelstring'uptime'Text following the uptime value.
emptyLabelstring'No data'Text for empty history bars.

Each StatusItem has a status: string and optional label: string. Built-in colors cover online, offline, maintenance, and empty. Unknown statuses use the empty color unless configured in statusColors. The component keeps the newest records when space is limited and pads missing history on the left.

The header slot receives domain, uptime, and operationalStatus. Use the footer slot for custom boundary labels and the bar slot for custom bar content; it receives bar and index.