[HIGH] Dashboard charts: replace hardcoded data with API data #13

Open
opened 2026-04-19 11:21:25 +00:00 by NW · 0 comments
Owner

Problem

All dashboard charts use hardcoded data.

Current:

  • Performance chart: hardcoded arrays
  • Traffic chart: hardcoded percentages
  • Types chart: hardcoded counts
  • Leads chart: hardcoded breakdown
  • Top properties: hardcoded views

Required:

  1. Fetch from /api/admin/analytics/charts on section load
  2. Update all Chart.js instances with real data
  3. Add period selector (week/month/year) functionality
  4. Add loading states

Files: public/js/admin.js (initCharts method)


Migrated from UniqueSoft/APAW#78

## Problem All dashboard charts use hardcoded data. ### Current: - Performance chart: hardcoded arrays - Traffic chart: hardcoded percentages - Types chart: hardcoded counts - Leads chart: hardcoded breakdown - Top properties: hardcoded views ### Required: 1. Fetch from /api/admin/analytics/charts on section load 2. Update all Chart.js instances with real data 3. Add period selector (week/month/year) functionality 4. Add loading states ### Files: public/js/admin.js (initCharts method) --- *Migrated from UniqueSoft/APAW#78*
NW added this to the Production Readiness - Phase 2 milestone 2026-04-19 11:21:25 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: UniqueSoft/TenerifeProp#13