Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of ICE-6 Bar Graph

Public visualization

Viewing a saved revision (read-only)

a2e174ba3c8a4b7d9b1d398f4d567dcc

Fork of Fork of ICE-6 Bar Graph

0 stars0🌍 Public
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.