How shalini130305/election-result-voter-dashboard works
This repository is an election-results and voter-behaviour dashboard for exploring election data across years, states, and parties through KPIs, charts, and generated insights. The main user workflow is opening the dashboard and interacting with its filters; the app also includes a local static-file server and a script that generates the CSV dataset. The source excerpts confirm dashboard rendering and dataset generation, but omit the app’s loading implementation, so dataset-to-dashboard links are not asserted. The two fallback-data files are represented without assuming which one is active.
Main entry points: app.js Dashboard App · index.html Dashboard Page · generate_data.py Dataset Generator · election_data.csv Election Records
Components 10
Dashboard
- Dashboard Page
index.html - Dashboard App
js/app.js - KPIs and Insights
js/app.js - Election Charts
js/app.js
Election Data
- Election Records
data/election_data.csv - Dataset Generator
generate_data.py - App Fallback Data
js/data_fallback.js - Scratch Fallback Data
scratch/fallback_data.js
Local Serving
- Local HTTP Server
server.py
Other components
- Dashboard User
Connections 5
- Dashboard User → Dashboard Page: opens
- Dashboard Page → Dashboard App: initializes
js/app.js - Dashboard App → KPIs and Insights: updates
js/app.js - Dashboard App → Election Charts: renders
js/app.js - Dataset Generator → Election Records: writes
generate_data.py