Skip to content
Styleof the Metric component

Negative Delta Metric

A drop against an up-is-good metric renders the badge in the down color automatically — value and delta set on every API call. Try imejis for free.

Updated

Negative Delta 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": 41200,
  "revenue.delta": -3.4
}

Good for

  • Weekly change reports that show honest dips
  • Cost metrics where down is good
  • Alerting visuals for slipping KPIs

Try your own data

Change the negative delta 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 negative delta metric with different values. The JSON is what you send.

Weekly revenue dip

An honest report tile — revenue down 3.4% renders the badge in red.

{
  "revenue.value": 41200,
  "revenue.delta": -3.4,
  "revenue.label": "Weekly revenue"
}

Cloud spend trending down

Costs falling is good news — 'down-good' colors the 12.8% drop green.

{
  "revenue.value": 8940,
  "revenue.delta": -12.8,
  "revenue.label": "Cloud spend",
  "revenue.deltaDirection": "down-good"
}

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 Negative delta 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": 41200,
    "revenue.delta": -3.4
  }' \
  -o image.png

Other metric styles

Negative Delta Metric questions

What does the Negative delta style change on the metric component?

A drop against an up-is-good metric renders the badge in the down color. It sets 2 properties on the metric component: value, delta. Everything else keeps the component's defaults, so your data and layout carry over.

How do I render the negative delta 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.delta) in the render request. Each render can carry different data while keeping the Negative delta 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.