Skip to content
Styleof the Metric component

Suffix Units Metric

Raw values with your own suffix — "1,284 users", "42 km" — instead of built-in formats, updated on every API call. Generate unit stat tiles free.

Updated

Suffix Units Metric style, sample render

What this style sets

A style is the metric component with a few properties set. Send these, or start from the style in the editor.

{
  "revenue.value": 1284,
  "revenue.format": "number",
  "revenue.suffix": " users",
  "revenue.label": "Active today",
  "revenue.showDelta": false
}

Good for

  • Active user counts with a unit label
  • Fitness or IoT readouts (km, kWh, steps)
  • Inventory levels with item units

Try your own data

Change the suffix units metric here with the same controls the editor shows. The preview updates as you type, and you get the API request for your changes.

Examples

Each example is the same suffix units metric with different values. The JSON is what you send.

Active users right now

A live headcount with a plain-text unit appended to the number.

{
  "revenue.value": 1284,
  "revenue.format": "number",
  "revenue.suffix": " users",
  "revenue.label": "Active today",
  "revenue.showDelta": false
}

Fitness distance readout

Kilometers logged this week for a workout recap graphic.

{
  "revenue.value": 42.5,
  "revenue.format": "none",
  "revenue.suffix": " km",
  "revenue.label": "This week",
  "revenue.showDelta": false,
  "revenue.labelPosition": "bottom"
}

New values, every render

Push the latest number with '<key>.value' and the change with '<key>.delta'; label, format and the '<key>.sparkline' trend series are overridable too. Send only the properties you want to change; everything else keeps its design value. The API guides cover every language.

Or ask your AI agent“Using imejis, make a 1200 × 630 image with the Suffix units style of the Metric component (type "metric") filled with my data, then give me a render link I can call with new values.”
curl -X POST "https://render.imejis.io/v1/$IMEJIS_DESIGN_ID" \
  -H "dma-api-key: $IMEJIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "revenue.value": 1284,
    "revenue.delta": 8.2,
    "revenue.format": "number",
    "revenue.suffix": " users",
    "revenue.label": "Active today",
    "revenue.showDelta": false
  }' \
  -o image.png

Other metric styles

Suffix Units Metric questions

What does the Suffix units style change on the metric component?

Raw value with a custom suffix instead of built-in formatting. It sets 5 properties on the metric component: value, format, suffix, label, showDelta. Everything else keeps the component's defaults, so your data and layout carry over.

How do I render the suffix units metric through the API?

Add a metric component to a design, then send its data together with the style's properties as flat overrides (for example revenue.value and revenue.format) in the render request. Each render can carry different data while keeping the Suffix units look.

Can the number update on every API call?

Yes — send '<key>.value' plus '<key>.delta' for the change badge; the label and format are overridable too.

How are values formatted?

format supports number (48,250), compact (48.3K), percent, currency with a custom currencySymbol, or none for raw text — plus prefix and suffix strings.

Free tools built on it, guides that use it, and the components that sit beside it.