|
45 | 45 | ); |
46 | 46 |
|
47 | 47 | export let matches: Match[] = []; |
48 | | - export let selectedDateRange: string = 'all'; |
| 48 | + export let selectedDateRange: string = 'E0'; // Default to Premier League |
49 | 49 | export let selectedSeason: string = '2024-2025'; |
50 | 50 | // Optional pre-computed chart data from API |
51 | 51 | export let apiChartData: Record<string, any> | null = null; |
|
830 | 830 | </div> |
831 | 831 | </div> |
832 | 832 |
|
833 | | - <!-- Team Performance Radar - Full Width --> |
| 833 | + <!-- Goals Trend - Full Width for better visualization --> |
834 | 834 | <div class="bg-white dark:bg-slate-900 rounded-xl p-4 sm:p-6 border border-slate-200 dark:border-green-500/20 transition-opacity duration-500 {isLoading ? 'opacity-50' : 'opacity-100'}"> |
835 | 835 | <div class="flex items-center justify-between mb-4"> |
836 | 836 | <div class="flex items-center gap-2"> |
837 | | - <Activity class="w-4 h-4 sm:w-5 sm:h-5 text-green-500" /> |
838 | | - <h3 class="text-base sm:text-lg font-bold text-slate-900 dark:text-green-400 font-mono">Team Performance</h3> |
| 837 | + <TrendingUp class="w-4 h-4 sm:w-5 sm:h-5 text-green-500" /> |
| 838 | + <h3 class="text-base sm:text-lg font-bold text-slate-900 dark:text-green-400 font-mono">Goals Trend</h3> |
839 | 839 | </div> |
840 | 840 | <button |
841 | | - on:click={() => handleQueryClick('team_performance', 'Team Performance')} |
| 841 | + on:click={() => handleQueryClick('goals_trend', 'Goals Trend')} |
842 | 842 | class="flex items-center gap-1.5 px-3 py-1.5 bg-green-500 hover:bg-green-600 text-white text-xs sm:text-sm rounded-lg transition-colors shadow-sm" |
843 | 843 | title="Generate SQL query for this chart" |
844 | 844 | > |
|
847 | 847 | </button> |
848 | 848 | </div> |
849 | 849 | <div class="h-64 sm:h-80"> |
850 | | - <Radar data={teamPerformanceData} options={radarOptions} /> |
| 850 | + <Line data={goalsOverTimeData} options={chartOptions} /> |
851 | 851 | </div> |
852 | 852 | </div> |
853 | 853 |
|
|
916 | 916 | </div> |
917 | 917 | </div> |
918 | 918 |
|
919 | | - <!-- Goals Over Time - Now with more space! --> |
| 919 | + <!-- Team Performance Radar --> |
920 | 920 | <div class="bg-white dark:bg-slate-900 rounded-xl p-4 sm:p-6 border border-slate-200 dark:border-green-500/20"> |
921 | 921 | <div class="flex items-center justify-between mb-4"> |
922 | 922 | <div class="flex items-center gap-2"> |
923 | | - <TrendingUp class="w-4 h-4 sm:w-5 sm:h-5 text-green-500" /> |
924 | | - <h3 class="text-base sm:text-lg font-bold text-slate-900 dark:text-green-400 font-mono">Goals Trend</h3> |
| 923 | + <img src="/sqlballlogo.svg" alt="SQL Ball Logo" class="w-4 h-4 sm:w-5 sm:h-5" /> |
| 924 | + <h3 class="text-base sm:text-lg font-bold text-slate-900 dark:text-green-400 font-mono">Team Performance</h3> |
925 | 925 | </div> |
926 | 926 | <button |
927 | | - on:click={() => handleQueryClick('goals_trend', 'Goals Trend')} |
| 927 | + on:click={() => handleQueryClick('team_performance', 'Team Performance')} |
928 | 928 | class="flex items-center gap-1.5 px-3 py-1.5 bg-green-500 hover:bg-green-600 text-white text-xs sm:text-sm rounded-lg transition-colors shadow-sm" |
929 | 929 | title="Generate SQL query for this chart" |
930 | 930 | > |
|
933 | 933 | </button> |
934 | 934 | </div> |
935 | 935 | <div class="h-48 sm:h-64"> |
936 | | - <Line data={goalsOverTimeData} options={chartOptions} /> |
| 936 | + <Radar data={teamPerformanceData} options={radarOptions} /> |
937 | 937 | </div> |
938 | 938 | </div> |
939 | 939 | </div> |
|
0 commit comments