A modern, interactive dashboard built with React, TypeScript, and Recharts for analyzing and visualizing data in real-time. Features a responsive design, dark mode support, and interactive charts.
- β Interactive line charts with hover effects
- β Scatter plots with regression analysis
- β Real-time metric updates
- β Multiple chart types and views
- β Key performance metrics
- β Trend analysis with growth indicators
- β Anomaly detection for significant changes
- β Statistical analysis (regression, RΒ² values)
- β Dark/light mode toggle
- β Responsive, mobile-first design
- β Interactive filters and controls
- β Smooth animations and transitions
- β Time range filtering
- β Metric comparisons
- β Trend visualization
- β Performance alerts
- β Layout customization is responsive
- β Cards and buttons adjust for mobile view
- β Improved visibility and spacing on smaller screens
- React - UI framework
- TypeScript - Type safety
- Tailwind CSS - Styling
- Recharts - Data visualization
- Lucide React - Icons
- Regression.js - Statistical analysis
- Clone the repository
- Install dependencies:
npm install
- Start the development server:
npm run dev
src/
βββ components/ # UI components
β βββ ChartContainer.tsx
β βββ DashboardHeader.tsx
β βββ FilterBar.tsx
β βββ InsightPanel.tsx
β βββ MetricCard.tsx
β βββ ScatterPlot.tsx
βββ data/ # Data management
β βββ mockData.ts
βββ types/ # TypeScript definitions
β βββ data.ts
βββ App.tsx # Main component
βββ index.css # Global styles
<MetricCard
title="Total Revenue"
value={50000}
change={12.5}
icon={DollarSign}
/><ChartContainer
data={data}
dataKey="revenue"
title="Revenue Over Time"
/><ScatterPlot
data={scatterData}
xLabel="Users"
yLabel="Revenue"
title="Correlation Analysis"
/>Update tailwind.config.js to customize:
- Color schemes
- Dark mode preferences
- Typography
- Breakpoints
- Animations
Modify chart components to adjust:
- Colors and styles
- Animations
- Tooltips
- Axes and legends
The dashboard implements several optimizations:
- React component memoization
- Efficient data filtering
- Responsive design patterns
- Optimized bundle size
MIT License - free to use for personal or commercial projects.