Logo Lanfrica

Bestman1001/Nigeria-election-dashboard

Domain:

socioeconomic

Record type:

software
Creator:
Bes
Host:
Interactive dashboard for Nigerian election results with state and LGA map layers # Nigeria Election Dashboard Interactive static dashboard for exploring Nigerian election results by state and local government area. ## Current Scope - Real Nigeria state and LGA boundary layers from geoBoundaries/GRID3. - Nigeria-only dark map canvas with visible state and LGA labels. - 2023 Nigerian presidential state-level result dataset. - Uploaded historical presidential and gubernatorial CSV datasets from 1999 through 2022. - Search, state drill-down, map metrics, party winner coloring, INEC party logos, chart, table, and CSV import workflow. - Live-feed controls for trusted JSON/API result sources. ## Data Model The dashboard accepts CSV imports with these columns: ```csv election_id,year,type,office,state,lga,ward,candidate,party,votes,registered,turnout,source_url,result_status ``` Rows are grouped by election, state, LGA, and ward. Party votes are aggregated into the dashboard view. ## LGA Result Pipeline For verifiable LGA uploads, use one CSV row per party per LGA. Keep `source_url` filled with the INEC/IReV page, official collation PDF, ERAD/Stears page, observer dataset, or state electoral commission source used for that unit. Recommended columns: ```csv election_id,year,type,office,state,lga,ward,candidate,party,votes,registered,accredited,valid,rejected,total_votes,turnout,source_url,result_status ``` Run the importer from the repository root: ```bash node scripts/import-lga-results.mjs --input data/lga-results.csv --election-id 2026-ekiti-governor-lga --label "2026 Ekiti Governor - LGA results" ``` The importer validates LGA names against `assets/nigeria-lgas.geojson`, groups party rows, and writes `assets/lga-results.js`. If an LGA name is not matched, the script stops so the map is not published with broken joins. Best source order for LGA data: 1. INEC/IReV result sheets and official final collation documents. 2. State electoral commission portals for local government elections. 3. ERAD, Stears, Yiaga Africa, CDD, SBM, Dataphyte, …

Languages