I'll build a complete SaaS analytics dashboard. Let me start by exploring the project structure.
Now let me set up the CSS with dark mode variant and build the data layer.
Now the data engine with realistic deterministic sample data.
Now the animation/measure hooks and chart components.
Now the main App with layout, filters, and dark mode.
Build succeeded. Let me fix the funnel label readability issue.
I built Pulse, a complete SaaS analytics dashboard. Everything is custom-built (no chart library) so charts animate and respond exactly as specified.
What's included:
Data engine (src/lib/data.ts) — A seeded generator producing 400 days × 4 plans × 5 channels × 4 regions of realistic daily records (MRR, new/churned MRR, signups, trials, conversions, active users, sessions, customers) with compounding growth, seasonality, and weekend dips — plus 148 synthetic customer accounts with health scores, seats, LTV, and lifecycle status.
KPI cards — 8 metrics (MRR, net new MRR, DAU, signups, churn, ARPU, trial→paid conversion, LTV) each with an animated count-up value, an inline sparkline, and a period-over-period trend badge that knows churn is good when it falls.
Charts (all with hover tooltips + genuine value-morphing transitions via a useTweenSeries RAF hook that resamples between differently-sized datasets):
- Smooth area/line chart with crosshair, multi-metric switcher (MRR/Users/Signups/Sessions) and a "Compare to previous period" overlay
- Grouped bar chart of new vs. churned MRR with column highlighting
- Two interactive donut charts (revenue by plan, MRR by region) with hover-expanding arcs and a reactive center label
- Horizontal channel-acquisition bars and a conversion funnel
Data table — Sortable on every column, live text search, status chips, health bars, pagination, and staggered row animations.
Filters — Date-range segmented control (7D→12M) plus multi-select Plan / Channel / Region dropdowns; every KPI, chart, and table row recomputes live from one shared filter state, with a reset chip showing active filter count.
Polish — Persisted dark-mode toggle with animated sun/moon icon, sticky sidebar with a live-session pulse counter, sticky header, and a fully responsive layout that collapses gracefully from 1600px down to mobile.
Files built: src/index.css, index.html, src/lib/data.ts, src/lib/hooks.ts, src/components/charts/LineChart.tsx, src/components/charts/BarChart.tsx, src/components/charts/DonutChart.tsx, src/components/charts/Sparkline.tsx, src/components/charts/HorizontalBars.tsx, src/components/ui.tsx, src/components/KpiCard.tsx, src/components/DataTable.tsx, src/App.tsx