Skip to main content
100%

Fork of Fork of Making a Bar Chart

✓ Published0🌍 Public
JJonathan Taylor
Last edited May 4, 2023
Created on May 4, 2023

This example visualizes Premier League team transfer spending across seasons. A dropdown selects the season or the average, and a second dropdown toggles between transfer-in and transfer-out values. The horizontal bar chart sorts teams by name, with bar lengths encoding the monetary amount and bar colors assigning a unique color per team via `d3.scaleOrdinal`. The visualization updates by filtering the loaded CSV data and redrawing SVG rectangles using `d3.scaleLinear`, `d3.scaleBand`, and `d3.axisBottom`.

AI-generated description
MIT Licensed

Similar vizzes