Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Boston Marathon Bar Chart #2

Public visualization

Viewing a saved revision (read-only)

56b8d5e5ce014687a7b72f46937b31c9

Boston Marathon Bar Chart #2

0 stars1🌍 Public
BBen Trantanella
Last edited Sep 26, 2025
Created on Sep 26, 2025

This bar chart shows the number of runners in each age group at the 2024 Boston Marathon, with bar colors encoding the average percent change between each group’s first and second half finish times. Using React and D3 v7, the chart groups runners from a CSV file into age categories, counts them, and calculates an average split-time change. The `viz` function builds the chart with D3’s `scaleBand` and `scaleLinear`, and a custom `getColor` utility maps average percent-change values to a green-to-red palette. A legend explains the color scale.

AI-generated description