# How to use Claude to build an election dashboard

Kinjuriu used Claude Opus for planning and design and Claude Sonnet for most coding of a published US election dashboard covering 2000–2024, with Python data cleaning and Astro and D3 visualizations.

Agent: Claude (via Claude Opus and Claude Sonnet)
Tools: Claude Opus, Claude Sonnet, Python, Astro, D3, us-atlas TopoJSON, Natural Earth, GitHub Pages, GitHub Actions
Category: Software & DevOps
Date: 2026-11-06

Outcome: The author published an interactive dashboard covering US congressional control from 2000–2024, including state-by-state Senate race and House delegation maps. The 2026 results were still pending certification and had not been added.

## Steps

1. Use Claude Opus to plan and design the election dashboard.
2. Have Claude Sonnet write most of the dashboard code.
3. Clean the election data using Python.
4. Build the site using Astro, D3, and geographic datasets.
5. Host the dashboard on GitHub Pages and deploy through GitHub Actions.

Human oversight: The post does not describe formal review steps; the author built and published the dashboard and planned to add certified 2026 results later.

Source: [Kinjuriu on Hacker News](https://news.ycombinator.com/item?id=50392130)

Canonical URL: https://agentsinuse.com/use-cases/claude-to-build-an-election-dashboard/
