MediaWiki:Common.js: Unterschied zwischen den Versionen

Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 1.096: Zeile 1.096:
       // Dummy-Daten für die Animation (nur visuell, echte Charts sind auf der Zielseite)
       // Dummy-Daten für die Animation (nur visuell, echte Charts sind auf der Zielseite)
       var bars = [
       var bars = [
         { label:'2019', value: 12, color:'#5aa3ff' },
         { label:'2021', value: 12, color:'#5aa3ff' },
         { label:'2020', value: 18, color:'#7ccb88' },
         { label:'2022', value: 18, color:'#7ccb88' },
         { label:'2021', value: 26, color:'#f7b267' },
         { label:'2023', value: 26, color:'#f7b267' },
         { label:'2022', value: 31, color:'#e07a5f' },
         { label:'2024', value: 31, color:'#e07a5f' },
         { label:'2023', value: 38, color:'#c084fc' }
         { label:'2025', value: 38, color:'#c084fc' }
       ];
       ];
       var maxVal = 40; // für „Gesamt“/Skalierung
       var maxVal = 40; // für „Gesamt“/Skalierung
Zeile 1.190: Zeile 1.190:
           ctx.fillText(bars[i].label, Math.floor(bx + bw/2), Math.floor(gy+gh + 14*dpr));
           ctx.fillText(bars[i].label, Math.floor(bx + bw/2), Math.floor(gy+gh + 14*dpr));
         }
         }


         // Sparkles bewegen/zeichnen
         // Sparkles bewegen/zeichnen