Methods
(async) fetchAllData()
Fetch all CSV data with caching
- Source:
(async) fetchData()
Fetch individual CSV file with 24h caching Tries local file first, then falls back to remote URL
- Source:
getCache()
Get cached data if not expired
- Source:
getElectionCycles()
Get unique election cycles from comparative data
- Source:
getParties()
Get unique parties from comparative data
- Source:
setCache()
Store data in cache with timestamp
- Source: