🌍 Public
Viewing a saved revision (read-only)
ea4824fbfd9f434b945d85c596133336
Population Bar Chart with margins
This visualization displays the top 10 countries by 2020 population as horizontal bars. The chart uses React with hooks to fetch and manage data, while D3 v5 provides the scaling functions—`scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis. Rendered as SVG, the chart applies fixed margins to position the plot area, loading data from a CSV via a gist URL.
AI-generated descriptionA program that loads and visualizes some data