🌍 Public
Viewing a saved revision (read-only)
e81c920c65824994808d4aa7ecc127f0
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