I'll build a comprehensive Arabic Video Games Analytics Dashboard. Let me start by exploring the project structure and then create all the components.
Now let me install the necessary packages for charts and icons.
Good, packages installed. Now let me create all the components. I'll start with the sample data generator and work my way through each component.
Let me fix the unused imports:
Now let me build the project to check for any remaining issues:
The build succeeded. Let me fix a small text issue I noticed in the RevenueChart and verify the overall quality:
Found a typo. Let me fix it:
Let me add the Tajawal Arabic font to the HTML head and rebuild:
Let me add animation classes to the main content:
Build successful. Let me verify the final file structure:
The interactive Arabic Video Games Analytics Dashboard is now complete. Here's what was built:
🎮 Dashboard Features
KPI Summary Cards
- 4 animated cards showing: Total Revenue, Total Players, Total Downloads, and Average Rating
- Each card includes a trend indicator (↑/↓) with percentage change vs previous month
- Hover effects with subtle elevation animations
Charts (with hover tooltips & smooth transitions)
- Revenue & Players Line/Area Chart — Dual-axis showing monthly revenue trends and player growth with gradient fills
- Genre Donut Chart — Shows distribution of games across 8 genres (أكشن، مغامرات، استراتيجية, etc.) with color-coded segments
- Regional Bar Chart — Player distribution across 10 Arab countries, sorted by player count
- Daily Activity Bar Chart — Weekday vs weekend active/peak player comparison
Sortable & Filterable Data Table
- 32 Arabic-named games with full data (name, developer, genre, platform, revenue, players, downloads, rating)
- Click-to-sort on every column (ascending/descending)
- Live search bar with Arabic text support
- Pagination with 8 items per page
- Color-coded genre and platform badges
Live Filters (all update every view instantly)
- Date Range: Quick-select buttons (Last 3 months, 6 months, 1 year, All time)
- Platform: Mobile, PC, Console, Cross-platform toggles
- Genre: 8 genre filter buttons
- Region: 10 Arab country filter buttons
- Active filter count indicator + reset button
Dark Mode Toggle
- Smooth animated toggle with sun/moon icons
- Persists preference to localStorage
- All components transition smoothly between modes
Design
- Full RTL Arabic layout with Tajawal font
- Clean modern card-based design with violet/cyan/emerald color palette
- Smooth fade-in and slide-up animations
- Fully responsive across mobile, tablet, and desktop
- 32 realistic Arabic game titles with Arabic developer names
Files built: src/data.ts, src/context.tsx, src/components/KPICards.tsx, src/components/RevenueChart.tsx, src/components/RegionBarChart.tsx, src/components/GenreDonutChart.tsx, src/components/DailyActivityChart.tsx, src/components/DataTable.tsx, src/components/Filters.tsx, src/components/DarkModeToggle.tsx, src/App.tsx, index.html, src/index.css