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. mebius
  3. Chart Series Geometry

Chart Series Geometry

lib

Geometry and scales for the chart cards: seriesToPixels, linePath, smoothPath (monotone curves) with smoothTangents and smoothCurveAt (its y at any x), areaPath, valueAt, alignPolylines (resamples two lines on the same x positions, straight or along a curve, so a period change can morph one into the other), polylineLengths, xAtLength and reachAt (where a line drawing itself in has got to, and when it reaches an x), roundCorners and edgeAt (Figma's corner radius on every vertex), niceTicks (linear axes), barTicks (axes from zero), timeTicks (UTC time axes), fittedDash (Figma's dash fitting), figmaGradientTransform (Figma's gradient matrix as an SVG gradientTransform), starPath and trianglePath (Figma's sparkles), seededRandom and bridgeWalk (repeatable sample data).

pnpm dlx shadcn@latest add "https://www.mebius.design/r/charts-series.json"
Premium blocks for shadcn/uiShadcnblocks.com ยท AffiliateExplore
lib/chart-series.ts