Price ticker
A live auction's price: the current bid in large, the change since the opening and the number of bids, the bids as steps, the reserve as a line.
- Domaine
- Affichage de données
- Niveau de support
- Taille
- Non mesurée
- Qui l'utilise
- Aucun produit en production ne l'importe encore
import { PriceTicker } from "@krizaka/charts/ticker";Web et mobile — le même composant pour React et React Native. Bêta : son API peut encore changer à une version mineure.
Pourquoi il est là. Built for a product that left the organisation (2026-10-29): kept until the next major's audit decides: a live auction price (PS-C).
Quand l’utiliser
- An auction room, on the web and in the app: the bids as they arrive.
- Any price that moves by discrete steps: a bid, a quote, an offer.
Quand ne pas l’utiliser
- A price series over days with open, high, low and close.À la place : Candlestick
- Money per period.À la place : Earnings chart
Installation
Installer
npm install @krizaka/chartsImporter
import { PriceTicker } from "@krizaka/charts/ticker";Exemples
Auction room
Eight bids in an auction, the reserve met.
No bid yet
The opening price, the reserve ahead.
Props
A live auction's price: the current bid, the change since the opening, the steps of the bids, the reserve.
| Prop | Type | Défaut | Description |
|---|---|---|---|
bidsrequis | readonly Bid[] | — | The bids, in any order: when and how much (minor units). |
currencyrequis | string | — | The ISO 4217 currency. |
openingrequis | number | — | The opening price, in minor units. |
actionsMenu | boolean | — | The ⋯ actions menu of the kit. false: the former “Show data” and export buttons, drawn in line. Default true. |
autoRange | boolean | — | Zoom the time axis on the period that has data: the empty days before the first and after the last value are
left out (never fewer than minPoints), and a sparse period says so under the chart instead of drawing 13 empty
days around one bar. Default false. |
brand | BrandId | — | 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). |
className | string | — | A class on the figure (layout: margins, grid placement). |
dataTable | boolean | — | “View as table” in the actions menu (the table is in the page for screen readers either way). Default true. |
description | ReactNode | — | A sentence under the title: the period, the unit, the source. |
dots | boolean | — | A dot on every point (short series). Default false: the end of each line carries one. |
empty | ReactNode | — | What to show when there is nothing to draw (default: the empty label). An EmptyState of
@krizaka /ui fits. |
endLabels | boolean | — | Write the last value at the end of each line (up to three series). Default true. |
error | ReactNode | — | The data could not be loaded: true says the default words, a node says yours (a retry button…). |
exportable | boolean | readonly ExportFormat[] | — | The downloads of the actions menu: all three by default, or the formats you want, or false for none. |
filterable | boolean | — | The legend chips switch the series on and off. Default true. |
height | number | — | The height of the plot in pixels. Default 280 (a sparkline: 32). |
hideTitle | boolean | — | Visually hide the title (it stays the chart's accessible name): a card that already has its heading. |
id | string | — | The id of the figure. |
insight | ReactNode | — | One line that says what the chart shows, between the title and the chart: “100 jobs · +100 % vs last week”. |
labels | Partial<TickerLabels> | — | The words, passed translated; English by default. |
legend | boolean | — | Show the legend (from two series). Default true. |
live | boolean | true | Streaming data (a job queue, an auction): no entrance on updates, no announcement of every new point. |
loading | boolean | — | The data is on its way: a skeleton of the chart, announced once. |
locale | Locale | — | The locale of every figure and date ("fr-FR"). Default "en-US". |
markers | readonly Marker[] | — | Vertical markers at a category: a launch, an incident. |
minPoints | number | — | With autoRange, the fewest categories to keep so a short burst still has a time scale. Default 7. |
onSelect | ((datum: Point, index: number) => void) | — | Called with the row when a point or a bar is clicked (or Enter is pressed on it). |
openedAt | string | Date | — | When the auction opened: the first point of the line. |
reserve | number | — | The reserve price, drawn as a line until it is met. |
style | CSSProperties | — | 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"). |
summaryText | string | — | Your own summary instead of the generated one (still read first by screen readers). |
timeFormat | CategoryFormat | time | How the times are written. Default "time" (14:30); "datetime" for auctions over several days. |
title | string | — | 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. |
xLabel | string | — | The header of the categories in the data table (Month). |
zero | boolean | — | Start the value axis at zero. Default: true for bars and areas; for lines, unless the values sit far from zero. |
Accessibilité
- The current price and the change are written above the plot; the arrow is decorative.
- The reserve is drawn and named until it is met.
Clavier
| Touches | Action |
|---|---|
| Tab | Moves the focus to the plot, then to the data and export buttons. |
| Arrow keys | Walk the bids: each price and time is announced. |
Bonnes pratiques
- Pass every bid with its time; the opening price and time give the first step.
- Keep
liveon (the default) while the auction runs: no entrance, no announcement of every bid. - Announce a new bid in the app's own live region (who outbid whom): the chart does not.
Composants liés
Générée depuis le code de @krizaka/ui 5.3.4 : son meta.ts, ses exemples et ses types.Modifier cette documentation sur GitHub