Skip to content

Commit b87b552

Browse files
committed
Update event dates for the 2026 Swedish parliamentary elections in multiple language files; enhance data transformation in JavaScript files for improved chart compatibility and accuracy; refactor mock data generation and anomaly handling in coalition and committee dashboards.
1 parent 10bd62a commit b87b552

19 files changed

+517
-263
lines changed

cia-data/seasonal/view_riksdagen_seasonal_anomaly_detection_sample.csv

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
year,quarter,is_election_year,total_ballots,active_politicians,attendance_rate,documents_produced,q_baseline_ballots,q_stddev_ballots,ballot_z_score,q_baseline_docs,q_stddev_docs,doc_z_score,q_baseline_attendance,q_stddev_attendance,attendance_z_score,activity_classification,quarter_label,parliamentary_period,anomaly_type,anomaly_direction,max_z_score,anomaly_severity
2-
<<<<<<< HEAD
3-
2004,3,f,17,349,100.00000000000000000000,1485,5.3333333333333333,4.1690469391639597,2.7984013701237538,848.6666666666666667,536.116813852390,1.1869303795208634,100.00000000000000000000,0,0,ANOMALY_DETECTED,Q3_JUL_SEP,Summer Recess/Election,BALLOT_ANOMALY,UNUSUALLY_HIGH,2.7984013701237538,HIGH
4-
=======
52
2004,3,f,17,349,100.00000000000000000000,1485,5.3333333333333333,4.1690469391639597,2.7984013701237538,848.6666666666666667,536.116813852390,1.1869303795208634,100.00000000000000000000,0,0,ANOMALY_DETECTED,Q3_JUL_SEP,Summer Recess/Election,BALLOT_ANOMALY,UNUSUALLY_HIGH,2.7984013701237538,CRITICAL
6-
>>>>>>> origin/main
73
2013,1,f,164,361,100.00000000000000000000,683,136.3888888888888889,33.1132439985057212,0.83383890483086160021,251.1111111111111111,122.181104194643,3.5348255504456715,100.00000000000000000000,0,0,NORMAL_ACTIVITY,Q1_JAN_MAR,Winter Session,DOCUMENT_ANOMALY,UNUSUALLY_HIGH,3.5348255504456715,CRITICAL
84
2014,4,t,24,351,100.00000000000000000000,3131,90.1666666666666667,35.6671706030003088,-1.8551139759064811,2963.6666666666666667,436.411031294231,0.38343057653030812445,100.00000000000000000000,0,0,REDUCED_ACTIVITY,Q4_OCT_DEC,Autumn Session,NO_ANOMALY,WITHIN_NORMAL_RANGE,1.8551139759064811,MODERATE
95
2007,2,f,96,356,100.00000000000000000000,210,193.0555555555555556,66.0111151266318020,-1.4702911073289694,224.5000000000000000,111.066090552374,-0.13055289807974669385,100.00000000000000000000,0,0,REDUCED_ACTIVITY,Q2_APR_JUN,Spring Session,NO_ANOMALY,WITHIN_NORMAL_RANGE,1.4702911073289694,LOW
@@ -40,13 +36,7 @@ year,quarter,is_election_year,total_ballots,active_politicians,attendance_rate,d
4036
2010,2,t,108,351,100.00000000000000000000,292,193.0555555555555556,66.0111151266318020,-1.2885035405384386,224.5000000000000000,111.066090552374,0.60774624968157943688,100.00000000000000000000,0,0,REDUCED_ACTIVITY,Q2_APR_JUN,Spring Session,NO_ANOMALY,WITHIN_NORMAL_RANGE,1.2885035405384386,LOW
4137
2023,4,f,34,352,100.00000000000000000000,2451,90.1666666666666667,35.6671706030003088,-1.5747441054924034,2963.6666666666666667,436.411031294231,-1.1747335193299082,100.00000000000000000000,0,0,REDUCED_ACTIVITY,Q4_OCT_DEC,Autumn Session,NO_ANOMALY,WITHIN_NORMAL_RANGE,1.5747441054924034,MODERATE
4238
2014,1,t,162,357,100.00000000000000000000,1353,136.3888888888888889,33.1132439985057212,0.77344011091957182633,251.1111111111111111,122.181104194643,9.0184885474066695,100.00000000000000000000,0,0,NORMAL_ACTIVITY,Q1_JAN_MAR,Winter Session,DOCUMENT_ANOMALY,UNUSUALLY_HIGH,9.0184885474066695,CRITICAL
43-
<<<<<<< HEAD
44-
2004,1,f,227,364,100.00000000000000000000,161,136.3888888888888889,33.1132439985057212,2.7364009130364895,251.1111111111111111,122.181104194643,-0.73752084420155379691,100.00000000000000000000,0,0,ANOMALY_DETECTED,Q1_JAN_MAR,Winter Session,BALLOT_ANOMALY,UNUSUALLY_HIGH,2.7364009130364895,HIGH
45-
2021,2,f,336,355,100.00000000000000000000,279,193.0555555555555556,66.0111151266318020,2.1654602284816476,224.5000000000000000,111.066090552374,0.49069882381697895274,100.00000000000000000000,0,0,ANOMALY_DETECTED,Q2_APR_JUN,Spring Session,BALLOT_ANOMALY,UNUSUALLY_HIGH,2.1654602284816476,HIGH
46-
2026,1,t,40,351,100.00000000000000000000,145,136.3888888888888889,33.1132439985057212,-2.9108863176691044,251.1111111111111111,122.181104194643,-0.86847399039763733177,100.00000000000000000000,0,0,ANOMALY_DETECTED,Q1_JAN_MAR,Winter Session,BALLOT_ANOMALY,UNUSUALLY_LOW,2.9108863176691044,HIGH
47-
=======
4839
2004,1,f,227,364,100.00000000000000000000,161,136.3888888888888889,33.1132439985057212,2.7364009130364895,251.1111111111111111,122.181104194643,-0.73752084420155379691,100.00000000000000000000,0,0,ANOMALY_DETECTED,Q1_JAN_MAR,Winter Session,BALLOT_ANOMALY,UNUSUALLY_HIGH,2.7364009130364895,CRITICAL
4940
2021,2,f,336,355,100.00000000000000000000,279,193.0555555555555556,66.0111151266318020,2.1654602284816476,224.5000000000000000,111.066090552374,0.49069882381697895274,100.00000000000000000000,0,0,ANOMALY_DETECTED,Q2_APR_JUN,Spring Session,BALLOT_ANOMALY,UNUSUALLY_HIGH,2.1654602284816476,HIGH
5041
2026,1,t,40,351,100.00000000000000000000,145,136.3888888888888889,33.1132439985057212,-2.9108863176691044,251.1111111111111111,122.181104194643,-0.86847399039763733177,100.00000000000000000000,0,0,ANOMALY_DETECTED,Q1_JAN_MAR,Winter Session,BALLOT_ANOMALY,UNUSUALLY_LOW,2.9108863176691044,CRITICAL
51-
>>>>>>> origin/main
5242
2012,3,f,1,349,100.00000000000000000000,534,5.3333333333333333,4.1690469391639597,-1.03940622318882281298,848.6666666666666667,536.116813852390,-0.58693676179554480847,100.00000000000000000000,0,0,REDUCED_ACTIVITY,Q3_JUL_SEP,Summer Recess/Election,NO_ANOMALY,WITHIN_NORMAL_RANGE,1.03940622318882281298,LOW

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175
"@type": "Event",
176176
"@id": "https://riksdagsmonitor.com/#event",
177177
"name": "Swedish Parliamentary Election 2026",
178-
"description": "Swedish Parliamentary Election scheduled for September 2026. Live intelligence platform monitoring 349 MPs across 8 parties with CIA OSINT capabilities, coalition predictions, and comprehensive risk assessment. Track voting patterns, committee activities, and political transparency in real-time.",
178+
"description": "Swedish Parliamentary Election scheduled for 13 September 2026. Live intelligence platform monitoring 349 MPs across 8 parties with CIA OSINT capabilities, coalition predictions, and comprehensive risk assessment. Track voting patterns, committee activities, and political transparency in real-time.",
179179
"image": {
180180
"@type": "ImageObject",
181181
"url": "https://cia.sourceforge.io/cia-logo.png",
@@ -321,8 +321,8 @@ <h1>🗳️ Swedish Election 2026<br>Live Intelligence Platform</h1>
321321
<p class="tagline">Real-time monitoring · Coalition predictions · Systematic transparency</p>
322322

323323
<div class="election-countdown">
324-
<h2>Election in: <span id="countdown">September 2026</span></h2>
325-
<p>Second Sunday in September (Date TBD)</p>
324+
<h2>Election in: <span id="countdown">13 September 2026</span></h2>
325+
<p>13 September 2026 (Second Sunday in September)</p>
326326
</div>
327327

328328
<div class="hero-stats">

index_ar.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656
"name": "الانتخابات البرلمانية السويدية 2026",
5757
"description": "منصة استخبارات مباشرة لمراقبة الانتخابات السويدية باستخدام قدرات CIA OSINT. تحليل في الوقت الفعلي لـ 349 عضو برلماني، توقعات التحالفات، وتقييم شامل للمخاطر.",
5858
"image": "https://cia.sourceforge.io/cia-logo.png",
59-
"startDate": "2026-09",
60-
"endDate": "2026-09",
59+
"startDate": "2026-09-13",
60+
"endDate": "2026-09-13",
6161
"eventStatus": "https://schema.org/EventScheduled",
6262
"eventAttendanceMode": "https://schema.org/OfflineEventAttendanceMode",
6363
"location": {
@@ -246,8 +246,8 @@ <h1>🗳️ الانتخابات السويدية 2026<br>منصة الاستخ
246246
<p class="tagline">المراقبة في الوقت الفعلي · توقعات التحالفات · الشفافية المنهجية</p>
247247

248248
<div class="election-countdown">
249-
<h2>الانتخابات في: <span id="countdown">سبتمبر 2026</span></h2>
250-
<p>الأحد الثاني من سبتمبر (التاريخ سيتم تحديده)</p>
249+
<h2>الانتخابات في: <span id="countdown">13 سبتمبر 2026</span></h2>
250+
<p>13 سبتمبر 2026 (الأحد الثاني من سبتمبر)</p>
251251
</div>
252252

253253
<div class="hero-stats">
@@ -419,7 +419,7 @@ <h3>المرحلة 2: فترة الحملة (يناير - أغسطس 2026)</h3>
419419
</div>
420420

421421
<div class="phase">
422-
<h3>المرحلة 3: يوم الانتخابات (سبتمبر 2026)</h3>
422+
<h3>المرحلة 3: يوم الانتخابات (13 سبتمبر 2026)</h3>
423423
<ul>
424424
<li>تجميع النتائج المباشرة من Valmyndigheten</li>
425425
<li>سيناريوهات فورية لتشكيل التحالف</li>

index_da.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
"name": "Svensk Riksdagsval 2026",
5656
"description": "Live intelligence-platform til svensk valgovervågning ved hjælp af CIA OSINT-funktioner. Realtidsanalyse af 349 riksdagsledamöter, koalitionsprognoser og omfattende risikovurdering.",
5757
"image": "https://cia.sourceforge.io/cia-logo.png",
58-
"startDate": "2026-09",
59-
"endDate": "2026-09",
58+
"startDate": "2026-09-13",
59+
"endDate": "2026-09-13",
6060
"eventStatus": "https://schema.org/EventScheduled",
6161
"eventAttendanceMode": "https://schema.org/OfflineEventAttendanceMode",
6262
"location": {
@@ -244,8 +244,8 @@ <h1>🗳️ Swedish Election 2026<br>Live Intelligence Platform</h1>
244244
<p class="tagline">Realtidsovervågning · Koalitionsprognoser · Systematisk gennemsigtighed</p>
245245

246246
<div class="election-countdown">
247-
<h2>Election in: <span id="countdown">September 2026</span></h2>
248-
<p>Second Sunday in September (Date TBD)</p>
247+
<h2>Election in: <span id="countdown">13 September 2026</span></h2>
248+
<p>13 September 2026 (Second Sunday in September)</p>
249249
</div>
250250

251251
<div class="hero-stats">
@@ -417,7 +417,7 @@ <h3>Phase 2: Campaign Period (January - August 2026)</h3>
417417
</div>
418418

419419
<div class="phase">
420-
<h3>Phase 3: Election Day (September 2026)</h3>
420+
<h3>Phase 3: Election Day (13 September 2026)</h3>
421421
<ul>
422422
<li>Live results aggregation from Valmyndigheten</li>
423423
<li>Instant coalition formation scenarios</li>

index_de.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@
7676
"name": "Schwedische Parlamentswahlen 2026",
7777
"description": "Live Intelligence Platform für schwedische Wahlüberwachung mit CIA OSINT-Funktionen. Echtzeitanalyse von 349 Abgeordneten, Koalitionsvorhersagen und umfassende Risikobewertung.",
7878
"image": "https://cia.sourceforge.io/cia-logo.png",
79-
"startDate": "2026-09",
80-
"endDate": "2026-09",
79+
"startDate": "2026-09-13",
80+
"endDate": "2026-09-13",
8181
"eventStatus": "https://schema.org/EventScheduled",
8282
"eventAttendanceMode": "https://schema.org/OfflineEventAttendanceMode",
8383
"location": {
@@ -234,8 +234,8 @@ <h1>🗳️ Schwedische Wahlen 2026<br>Live Intelligence Platform</h1>
234234
<p class="tagline">Echtzeit-Überwachung · Koalitionsvorhersagen · Systematische Transparenz</p>
235235

236236
<div class="election-countdown">
237-
<h2>Wahlen in: <span id="countdown">September 2026</span></h2>
238-
<p>Zweiter Sonntag im September (Datum noch festzulegen)</p>
237+
<h2>Wahlen in: <span id="countdown">13. September 2026</span></h2>
238+
<p>13. September 2026 (zweiter Sonntag im September)</p>
239239
</div>
240240

241241
<div class="hero-stats">
@@ -407,7 +407,7 @@ <h3>Phase 2: Campaign Period (January - August 2026)</h3>
407407
</div>
408408

409409
<div class="phase">
410-
<h3>Phase 3: Election Day (September 2026)</h3>
410+
<h3>Phase 3: Wahltag (13. September 2026)</h3>
411411
<ul>
412412
<li>Live results aggregation from Valmyndigheten</li>
413413
<li>Instant coalition formation scenarios</li>

index_es.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@
7676
"name": "Elecciones Parlamentarias Suecas 2026",
7777
"description": "Plataforma de inteligencia en vivo para el monitoreo de elecciones suecas utilizando capacidades OSINT de CIA. Análisis en tiempo real de 349 diputados, predicciones de coaliciones y evaluación de riesgos integral.",
7878
"image": "https://cia.sourceforge.io/cia-logo.png",
79-
"startDate": "2026-09",
80-
"endDate": "2026-09",
79+
"startDate": "2026-09-13",
80+
"endDate": "2026-09-13",
8181
"eventStatus": "https://schema.org/EventScheduled",
8282
"eventAttendanceMode": "https://schema.org/OfflineEventAttendanceMode",
8383
"location": {
@@ -234,8 +234,8 @@ <h1>🗳️ Elecciones Suecas 2026<br>Plataforma de Inteligencia en Vivo</h1>
234234
<p class="tagline">Monitoreo en tiempo real · Predicciones de coaliciones · Transparencia sistemática</p>
235235

236236
<div class="election-countdown">
237-
<h2>Elecciones en: <span id="countdown">Septiembre 2026</span></h2>
238-
<p>Segundo domingo de septiembre (fecha por determinar)</p>
237+
<h2>Elecciones en: <span id="countdown">13 de septiembre de 2026</span></h2>
238+
<p>13 de septiembre de 2026 (segundo domingo de septiembre)</p>
239239
</div>
240240

241241
<div class="hero-stats">
@@ -407,7 +407,7 @@ <h3>Phase 2: Campaign Period (January - August 2026)</h3>
407407
</div>
408408

409409
<div class="phase">
410-
<h3>Phase 3: Election Day (September 2026)</h3>
410+
<h3>Fase 3: Día de elecciones (13 de septiembre de 2026)</h3>
411411
<ul>
412412
<li>Live results aggregation from Valmyndigheten</li>
413413
<li>Instant coalition formation scenarios</li>

index_fi.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
"name": "Ruotsin Valtiopäivävaalit 2026",
5656
"description": "Live-tiedustelualusta Ruotsin vaalien seurantaan käyttäen CIA OSINT-ominaisuuksia. Reaaliaikainen analyysi 349 kansanedustajasta, koalitioennusteet ja kattava riskien arviointi.",
5757
"image": "https://cia.sourceforge.io/cia-logo.png",
58-
"startDate": "2026-09",
59-
"endDate": "2026-09",
58+
"startDate": "2026-09-13",
59+
"endDate": "2026-09-13",
6060
"eventStatus": "https://schema.org/EventScheduled",
6161
"eventAttendanceMode": "https://schema.org/OfflineEventAttendanceMode",
6262
"location": {
@@ -244,8 +244,8 @@ <h1>🗳️ Swedish Election 2026<br>Live Intelligence Platform</h1>
244244
<p class="tagline">Reaaliaikainen seuranta · Koalitioennusteet · Systemaattinen läpinäkyvyys</p>
245245

246246
<div class="election-countdown">
247-
<h2>Election in: <span id="countdown">September 2026</span></h2>
248-
<p>Second Sunday in September (Date TBD)</p>
247+
<h2>Election in: <span id="countdown">13 September 2026</span></h2>
248+
<p>13 September 2026 (Second Sunday in September)</p>
249249
</div>
250250

251251
<div class="hero-stats">
@@ -417,7 +417,7 @@ <h3>Phase 2: Campaign Period (January - August 2026)</h3>
417417
</div>
418418

419419
<div class="phase">
420-
<h3>Phase 3: Election Day (September 2026)</h3>
420+
<h3>Phase 3: Election Day (13 September 2026)</h3>
421421
<ul>
422422
<li>Live results aggregation from Valmyndigheten</li>
423423
<li>Instant coalition formation scenarios</li>

index_fr.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@
7676
"name": "Élections Parlementaires Suédoises 2026",
7777
"description": "Plateforme d'intelligence en direct pour la surveillance des élections suédoises utilisant les capacités OSINT de la CIA. Analyse en temps réel de 349 députés, prévisions de coalitions et évaluation complète des risques.",
7878
"image": "https://cia.sourceforge.io/cia-logo.png",
79-
"startDate": "2026-09",
80-
"endDate": "2026-09",
79+
"startDate": "2026-09-13",
80+
"endDate": "2026-09-13",
8181
"eventStatus": "https://schema.org/EventScheduled",
8282
"eventAttendanceMode": "https://schema.org/OfflineEventAttendanceMode",
8383
"location": {
@@ -234,8 +234,8 @@ <h1>🗳️ Élections Suédoises 2026<br>Plateforme d'Intelligence en Direct</h
234234
<p class="tagline">Surveillance en temps réel · Prévisions de coalitions · Transparence systématique</p>
235235

236236
<div class="election-countdown">
237-
<h2>Élections dans : <span id="countdown">Septembre 2026</span></h2>
238-
<p>Deuxième dimanche de septembre (date à déterminer)</p>
237+
<h2>Élections dans : <span id="countdown">13 septembre 2026</span></h2>
238+
<p>13 septembre 2026 (deuxième dimanche de septembre)</p>
239239
</div>
240240

241241
<div class="hero-stats">
@@ -407,7 +407,7 @@ <h3>Phase 2: Campaign Period (January - August 2026)</h3>
407407
</div>
408408

409409
<div class="phase">
410-
<h3>Phase 3: Election Day (September 2026)</h3>
410+
<h3>Phase 3 : Jour d'élection (13 septembre 2026)</h3>
411411
<ul>
412412
<li>Live results aggregation from Valmyndigheten</li>
413413
<li>Instant coalition formation scenarios</li>

index_he.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
"name": "בחירות פרלמנטריות שבדיה 2026",
5656
"description": "פלטפורמת מודיעין חי לניטור בחירות שבדיה באמצעות יכולות OSINT של CIA. ניתוח בזמן אמת של 349 חברי פרלמנט, תחזיות קואליציות והערכת סיכונים מקיפה.",
5757
"image": "https://cia.sourceforge.io/cia-logo.png",
58-
"startDate": "2026-09",
59-
"endDate": "2026-09",
58+
"startDate": "2026-09-13",
59+
"endDate": "2026-09-13",
6060
"eventStatus": "https://schema.org/EventScheduled",
6161
"eventAttendanceMode": "https://schema.org/OfflineEventAttendanceMode",
6262
"location": {
@@ -248,8 +248,8 @@ <h1>🗳️ בחירות שבדיה 2026<br>פלטפורמת מודיעין חי
248248
<p class="tagline">ניטור בזמן אמת · תחזיות קואליציות · שקיפות שיטתית</p>
249249

250250
<div class="election-countdown">
251-
<h2>הבחירות בעוד: <span id="countdown">ספטמבר 2026</span></h2>
252-
<p>ראשון שני בספטמבר (תאריך יוכרז)</p>
251+
<h2>הבחירות בעוד: <span id="countdown">13 בספטמבר 2026</span></h2>
252+
<p>13 בספטמבר 2026 (יום ראשון שני בספטמבר)</p>
253253
</div>
254254

255255
<div class="hero-stats">
@@ -421,7 +421,7 @@ <h3>שלב 2: תקופת הקמפיין (ינואר - אוגוסט 2026)</h3>
421421
</div>
422422

423423
<div class="phase">
424-
<h3>שלב 3: יום הבחירות (ספטמבר 2026)</h3>
424+
<h3>שלב 3: יום הבחירות (13 בספטמבר 2026)</h3>
425425
<ul>
426426
<li>צבירת תוצאות חיות מ-Valmyndigheten</li>
427427
<li>תרחישי הקמת קואליציה מיידיים</li>

index_ja.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@
9090
"description": "CIAのOSINT機能を使用したスウェーデン総選挙監視のためのリアルタイム情報プラットフォーム。349名の国会議員のリアルタイム分析、連立予測、包括的なリスク評価。",
9191
"image": "https://cia.sourceforge.io/cia-logo.png",
9292
"inLanguage": "ja",
93-
"startDate": "2026-09",
94-
"endDate": "2026-09",
93+
"startDate": "2026-09-13",
94+
"endDate": "2026-09-13",
9595
"eventStatus": "https://schema.org/EventScheduled",
9696
"eventAttendanceMode": "https://schema.org/OfflineEventAttendanceMode",
9797
"location": {

0 commit comments

Comments
 (0)