Skip to main content
Use Metric Cards to show a row of headline numbers: revenue, cost, margin, margin percent, and any custom metrics you define. Part of Usage Widgets.

What MetricCards supports

  • Revenue, cost, margin, and margin percent cards
  • Custom metrics (any name and value you pass in)
  • Currency formatting per card
  • Percent formatting
  • Change indicators (up / down)
  • Loading skeleton state

Where to use MetricCards

  • Usage dashboards
  • Customer portal overview
  • Account summary pages

Importing MetricCards

Rendering MetricCards

titleKey is one of revenue, cost, margin, marginPercent, cpm, or custom. For custom, also pass customLabel with the display name. See Ways to provide data for SDK, API, backend, and static JSON options.

Mapping API data into MetricCards

Usage Widgets

Overview of all four usage components.

Usage Trend Chart

Line chart of usage over time, one series per feature.

Usage Breakdown

Grouped, sortable table of usage and cost by feature.