Fork of Sports List
✓ Published1🌍 Public
This example displays the 11 most popular sports of 2021 ranked by number of matches, rendered as a horizontal bar chart using SVG. The chart uses React with hooks to load and manage the CSV data, while D3 v5 provides the scales, axes, and shape rendering. The bars are colored purple and include labeled tick marks for both axes, with the x-axis scaled linearly by match count. The code uses `scaleBand` for the categorical sports names and `scaleLinear` for the numeric values.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed