Skip to content
Charts55Components12Visuals14ASCII45
GitHubGet startedGet started
  • All charts
  • Getting started

Trends3

  • Area
  • Line
  • Combo

Comparison4

  • Bar
  • Horizontal bar
  • Slope
  • RangeNew

Part of a whole4

  • Radial
  • Treemap
  • Funnel
  • Sankey

KPIs3

  • Stat cards
  • Progress
  • Activity ring

Patterns5

  • Heatmap
  • Cohort retentionNew
  • Scatter
  • Radar
  • Box plotNew

Cool23New

  • Chord loom
  • Rank ribbons
  • Event helix
  • Contour islands
  • Parallel ribbons
  • Sunburst terraces
  • Cluster constellation
  • Ternary prism
  • Wind rose
  • Marimekko blocks
  • Intersection towers
  • Horizon folds
  • Circle archipelago
  • Helix ribbons
  • Voxel cloud
  • Arc bridges
  • Terrain
  • Hex city
  • Voxel waffle
  • Skyline
  • Block city
  • Ridgeline
  • Spiral year

Finance13New

  • Candlestick
  • Indicators
  • Price
  • Depth
  • Order book
  • Portfolio
  • Watchlist
  • Market map
  • Volume profile
  • Monthly returns
  • Earnings
  • Yield curve
  • Options payoff

Customize10

  • Colors
  • Surfaces
  • Backgrounds
  • 3DNew
  • Axes
  • LegendsNew
  • Hover
  • Numbers
  • Loading
  • Empty

Features5New

  • Sync hover
  • Pin
  • Compare
  • Targets & forecasts
  • Performance

Reference2

  • API reference
  • Motion & accessibility
API reference/Appearance & motion

Animated numbers

Six ways for a value to change, always read out as the exact number.

  • AnimatedNumber
  • numberStyle
  • renderValue

AnimatedNumber takes a numeric value, an optional format function or Intl.NumberFormat, and a variant: count (the default) counts the value itself, pop swaps the number with a small bounce, slide moves changed digits in the direction of change, roll turns each digit like an odometer, flow uses NumberFlow's spinning digits (it needs an Intl.NumberFormat, which cards supply), and scramble cycles figures before they land. Symbols such as a currency sign hold still, and every variant keeps moving while a pointer scrubs a chart. The accessible reading is always the exact value, motion="none" turns movement off, and reduced-motion preferences are respected automatically. Cards take the same choice as numberStyle. Legend values stay static unless you render one through renderValue.

TypeScript

import { AnimatedNumber, Legend } from '@lilt-ui/charts';

const currency = new Intl.NumberFormat('en-US', {
  style: 'currency', currency: 'USD', maximumFractionDigits: 0,
});

<AnimatedNumber value={55610} format={currency} />
<Legend model={model} renderValue={(entry) => entry.value === null
  ? 'No data'
  : <AnimatedNumber value={entry.value} format={currency} variant="roll" />
} />
PreviousAvailability and motionNextVertical bars