Classes
Methods
getFormattedElectionDate() → {string}
Get election date formatted NOTE: Reserved for future implementation - can be used to display election date in dashboard header. The data is available as electionDate in election-analysis.json.
Returns:
Formatted election date or empty string if invalid
- Type
- string
getSummaryStats() → {Object}
Calculate and return summary statistics NOTE: Reserved for future implementation - can be used to display election summary metrics. Calculates total seats, gainers/losers/stable parties, and biggest changes.
Returns:
Summary statistics object
- Type
- Object
renderCoalitionScenarios()
Render coalition scenarios
renderKeyFactors()
Render key factors affecting the election NOTE: Reserved for future implementation - requires adding
to HTML and calling this method from dashboard-init.js. The data is available in election-analysis.json.renderSeatPredictions()
Render seat predictions for all parties
- Source: