Skip to main content
Public

Share visualization

Send this visualization to others.

Fork of Fork of Sports List

Public visualization

By Naimisha-M on VizHub

LinkedIn caption

LinkedIn cannot prefill the post text. Copy the caption, then paste it in LinkedIn. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code

The embed preserves the visualization's visibility and project dataset permissions.

Download & exportHTML, source ZIP and authorized project data

Source ZIP contains editable visualization files; it does not include project datasets. Standalone HTML is available where authorized and packages readable referenced data for offline use. Dataset ZIP requires project read permission.

Standalone HTMLSource ZIP
Publishing & handoffCopy a client maintenance summary

Includes the canonical link, visibility, and available export formats. Confirm dataset attribution, licensing and maintenance responsibilities with the publisher.

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