Dev Design Library

Connecting Real Data

Wiring any chart to a real source: fetch in an effect, SWR or React Query, server components, and streaming — with every outcome mapped onto a status.

Connecting Real Data preview
Library
Spectrum UI
Framework
React
Type
component
License
Apache-2.0
Install
npx shadcn@latest add @spectrumui/chart-data
Files
  • app/registry/charts/chart-engine.tsx
  • app/registry/charts/market-chart.tsx
  • app/registry/charts/chart-data.tsx
  • lib/utils.ts
Source
https://github.com/arihantcodes/spectrum-ui

Categories

More from Spectrum UI