Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Making a Bar Chart

Public visualization

Fork of Fork of Making a Bar Chart

0 stars0🌍 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

Comments

Sign in to join the discussion.

MIT Licensed