Skip to main content
100%

Fork of Fork of ICE-6 Bar Graph

✓ Published0🌍 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.

MIT Licensed

Similar vizzes