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.

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

Best used for

  • Usage dashboards
  • Customer portal overview
  • Account summary pages

Import

Usage

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.

Map Flexprice API data

See also

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.