Skip to main content
100%

Axes Second Try

✓ Published1🌍 Public
Aangelathacker123
Last edited Feb 18, 2022
Created on Feb 17, 2022

This bar chart displays the top ten countries by population in 2020, with country names on the y-axis and population counts on the x-axis. The React app fetches CSV data from a GitHub gist using d3.csv, then uses d3.scaleBand and d3.scaleLinear to position bars and axes. d3.ticks generate gridlines and labels for an unfilled x-axis, while manually rendered text elements show country names. The visualization uses React state with useEffect to load and slice the data, rendering everything as SVG elements.

AI-generated description

Uses React to render data

MIT Licensed

Similar vizzes