Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Sports List

Public visualization

Viewing a saved revision (read-only)

53b85dfd066e4964a2b2254b37a88020

Fork of Sports List

0 stars1🌍 Public
NNaimisha-M
Last edited Jun 25, 2022
Created on Jun 25, 2022
Forked from Sports List

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 description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.