1 slot open this monthBy the makers of shadcnregistryWe built shadcnregistry. Now we build your product.Book a callCheck availability
1 slot open this monthAI features?We build AI features into your product.Book a callCheck availability
1 slot open this month๐Ÿšจ Slop police๐Ÿšจ Slop police: we clean up vibe-coded apps.Report itReport your app
shadcnregistry
shadcnregistry
RegistryHealthInspect
Terms of ServicePrivacy Policy
  1. Registries
  2. kino
  3. Chart Maths

Chart Maths

lib

The maths every chart shares: series and stacks, the scales (bands and points of categories, numbers and times) and their ticks, where the pointer and the keys land, label spacing and the cascade order. Pure functions, so they are tested on their own.

pnpm dlx shadcn@latest add "https://kinoui.com/r/chart-math.json"
Premium blocks for shadcn/uiShadcnblocks.com ยท AffiliateExplore
  • d3-array
  • dates
@lib/chart-math.ts