Skip to main content
Public

Share visualization

Loading preview…

Fork of Fork of Sports List

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of Fork of Sports List

0 stars1Public
NNaimisha-M
Last edited Jun 25, 2022
Created on Jun 25, 2022

This visualization displays the top 10 famous sports in 2021, with each sport's popularity measured by the number of matches played. The horizontal bar chart renders as an SVG using React and d3.js, with the data loaded from a CSV file via d3.csv. The chart uses d3.scaleBand for the y-axis sport categories, d3.scaleLinear for the x-axis match counts, and d3.max to compute the scale domain. The code also utilizes React's useEffect and useState hooks for fetching and storing the data.

AI-generated description

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

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed