Updates the Ohme Historical Sites Dashboard with new country data, year columns, and global totals. Use when modifying CSV data, adding countries, changing years, or updating site counts.
This skill ensures that updates to the Ohme Historical Sites Dashboard are done correctly and completely, maintaining data consistency across all files.
Invoke this skill when:
File: sites-data.csv
Country,2025,2024 (or whatever years are needed)162000 not 162,000)Example:
Country,2025,2024
UK,162000,143209
France,4180,978
Germany,657,72
File: app.js
Update the globalTotals object in TWO places:
Location 1 - renderChart() method (around line 141):
const globalTotals = {
'2024': 149000,
'2025': 175420
};
Location 2 - updateStats() method (around line 239):
const globalTotals = {
'2024': 149000,
'2025': 175420
};
Important: These must match! Update both locations with the same values.
To calculate totals: Sum all country values for each year from the CSV.
File: app.js - useSampleData() method (around line 57)
Update the fallback data to match the CSV:
this.data = [
{ Country: 'UK', '2025': '162000', '2024': '143209' },
{ Country: 'France', '2025': '4180', '2024': '978' },
// ... etc
];
Always double-check:
File: README.md
Update if:
Always maintain these brand colors:
#00D9A3 (Ohme green/teal)#1A1A1A (dark charcoal)#FFFFFF (white)#F5F5F5 (light grey)After making updates:
Use conventional commits:
feat: update data with [description]
Example:
feat: update data with Q1 2025 site counts
- UK: 162,000 sites (+18,791)
- France: 4,180 sites (+3,202)
- Updated global totals: 175,420 (2025), 149,000 (2024)
ā Don't: Use commas in numbers in CSV (162,000) ā Do: Use plain numbers (162000)
ā Don't: Update only one globalTotals location ā Do: Update both renderChart() and updateStats()
ā Don't: Forget to update sample data fallback ā Do: Keep useSampleData() in sync with CSV
ā Don't: Guess at global totals ā Do: Calculate by summing CSV values
sites-data.csv - Primary data sourceapp.js - Application logic (3 update points)README.md - Documentation (update if structure changes)CLAUDE.md - Project conventions reference