Class: Election2026Predictions

Election2026Predictions()

Election 2026 Predictions Module Renders Swedish election forecasting and coalition scenarios

Constructor

new Election2026Predictions()

Source:

Classes

Election2026Predictions

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.

Source:
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.

Source:
Returns:

Summary statistics object

Type
Object

renderCoalitionScenarios()

Render coalition scenarios

Source:

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.

Source:

renderSeatPredictions()

Render seat predictions for all parties

Source: