Skip to main content
Public

Share visualization

Loading preview…

Fork of Fork of ICE-6 Bar Graph

vizhub.com

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

Before sharing, review the publishing checklist.

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 ICE-6 Bar Graph

0
GGogineni44
Last edited Mar 23, 2023
Created on Mar 23, 2023

This example displays a horizontal bar chart of the top 12 countries by internet cost, rendered as SVG, though the chart lacks axes and uses incorrect data fields, making the bars visually meaningless. The React component loads CSV data from a GitHub gist via d3.csv, then uses d3.scaleBand for the y-axis and d3.scaleLinear for the x-axis to position rectangles. The code references United Nations population data in the README, but the visualization actually maps unrelated fields like bill_length and species, resulting in a broken chart. React state management triggers redraws through useEffect and useState.

AI-generated description

A program that shows the top 10 most populous countries as a pathetic bar chart with no axes.

Data: United Nations World Population Prospects 2019.

Comments

Sign in to join the discussion.

MIT Licensed