Krizaka UI
Krizaka UI
ComponentsData display

Goal progress

A pot towards its goal, in money: an arc that fills, “raised of $500” under the amount, the supporters and the time left.

Web · ✓Mobile · ✓Desktop · ✓BetaCharts
Support level
Beta
Size
Not measured
Who uses it
No live product imports it yet
import { GoalProgress } from "@krizaka/charts/goal";

Web and mobile — the same component for React and React Native. Beta: its API may still change in a minor version.

Why it is here. Built for a product that left the organisation (2026-10-29): kept until the next major's audit decides: a pot raised towards its goal (PS-C).

When to use

  • A creator's challenge with a goal: what fans pledged so far, on the web and in the app.
  • A crowdfunded request: the amount raised, the supporters, the deadline.

When not to use

  • An allowance that runs out.Use instead: Credit usage
  • A value in a range that is not money raised.Use instead: Gauge

Installation

Install

npm install @krizaka/charts

Import

import { GoalProgress } from "@krizaka/charts/goal";

Examples

A challenge's pot

A goal halfway there, its supporters and the time left.

Goal reached

Past the goal: the success tone, the amount still counting.

Props

A pot towards its goal, in money: the arc fills, the words say how much of what, and who chipped in.

PropTypeDefaultDescription
currencyrequiredstring—The ISO 4217 currency.
goalrequirednumber—The goal, in minor units.
raisedrequirednumber—The amount raised, in **minor units** (cents).
actionsMenuboolean—The ⋯ actions menu of the kit. false: the former “Show data” and export buttons, drawn in line. Default true.
brandBrandId—The brand whose palette the charts use. Without it, a chart follows a .brand-<id> ancestor, else Krizaka. Set it when the app loads a brand stylesheet on :root (@krizaka/tokens/brands/sovkora.css).
classNamestring—A class on the figure (layout: margins, grid placement).
descriptionReactNode—A sentence under the title: the period, the unit, the source.
emptyReactNode—What to show when there is nothing to draw (default: the empty label). An EmptyState of @krizaka /ui fits.
errorReactNode—The data could not be loaded: true says the default words, a node says yours (a retry button…).
heightnumber—The height of the plot in pixels. Default 280 (a sparkline: 32).
hideTitleboolean—Visually hide the title (it stays the chart's accessible name): a card that already has its heading.
idstring—The id of the figure.
insightReactNode—One line that says what the chart shows, between the title and the chart: “100 jobs · +100 % vs last week”.
labelsPartial<GoalLabels>—The words, passed translated; English by default.
liveboolean—Streaming data (a job queue, an auction): no entrance on updates, no announcement of every new point.
loadingboolean—The data is on its way: a skeleton of the chart, announced once.
localeLocale—The locale of every figure and date ("fr-FR"). Default "en-US".
styleCSSProperties—Inline style on the figure (layout only: colours come from the tokens).
summary"hidden" | "visible"—The written summary: read by screen readers only ("hidden", default), or shown under the chart ("visible").
summaryTextstring—Your own summary instead of the generated one (still read first by screen readers).
supportersnumber—How many people chipped in.
timeLeftReactNode—The time left, written by the app (a Countdown, “2 days”).
titlestring—What the chart shows, in a few words: its accessible name, and its heading unless hideTitle. Inside a ChartCard, the card's title is the default.

Accessibility

  • The gauge is a meter: the amount and “raised of $500” are its value in words.
  • “Goal reached” is written, never only shown by a colour.

Best practices

  • Pass amounts in minor units and the currency.
  • Write the time left with the app's countdown and pass it in timeLeft.
  • Past the goal the amount keeps counting and the arc stays full, in the success tone.

Generated from the code of @krizaka/ui 5.3.4: its meta.ts, its examples and its types.Edit this documentation on GitHub

On this page