I'll create a comprehensive interactive analytics dashboard for AKHSA with all the features you requested. Let me start by exploring the project structure and setting up the necessary dependencies.
Now I'll create a comprehensive dashboard with all the features. Let me start with the CSS and then build the components.
Let me fix those TypeScript errors by removing unused imports:
Let me also update the title in index.html:
I've created a comprehensive interactive analytics dashboard for AKHSA (Assumed to be a healthcare facility). Here's what I've built:
Dashboard Features
🏥 9 Department Coverage
- General Management
- Hygiene
- OPD Consultation
- Family Planning
- Laboratory
- Maternity
- Tracer Drug
- Essential Drug Management
- EPI (Immunization)
📊 KPI Summary Cards (6 cards with trend indicators)
- Total Patients (12,847) with +12.5% trend
- OPD Consultations (3,247) with +8.2% trend
- Deliveries (186) with -2.4% trend
- Immunizations (1,432) with +15.8% trend
- Lab Tests (5,672) with +6.3% trend
- Drug Stock Level (87%) with visual progress bars
📈 Interactive Charts
- Monthly Trends Area Chart - Patient visits across OPD, Maternity, and Laboratory
- Department Distribution Donut Chart - Patient load by department with color-coded legend
- Drug Inventory Stacked Bar Chart - In stock, low stock, and expired drugs
- Hygiene Compliance - Progress bars for hand hygiene, waste management, sanitation, and sterilization
- Family Planning & EPI Composed Chart - Bar + Line combination chart
📋 Sortable & Filterable Data Table
- Search functionality for departments and metrics
- Sort by Department, Metric, Current Value, Target, Status, and Date
- Status badges (On Track, At Risk, Behind) with color coding
- Trend indicators with icons
- Export button
🎛️ Live Filters
- Date range selector (7 Days, 30 Days, 3 Months)
- Department dropdown filter
- Real-time data refresh every 30 seconds
- All views update instantly when filters change
🎨 Modern Design
- Clean, professional healthcare aesthetic
- Dark mode toggle with smooth transitions
- Card hover effects with subtle animations
- Responsive layout for all screen sizes
- Custom scrollbar styling
- Color-coded status indicators
- Gradient accent elements
📱 Responsive Features
- Mobile-optimized navigation
- Grid layouts that adapt to screen size
- Horizontal scroll for data tables on small screens
- Stacked charts on mobile, side-by-side on desktop
The dashboard uses realistic sample data that refreshes automatically, making every chart feel alive and dynamic. All charts include hover tooltips with detailed information and smooth transitions when data updates.
Files built: src/index.css, src/App.tsx, index.html