dv2020-ep23-viz23 - bar chart, refactor
✓ Published1🌍 Public
This bar chart displays the top 8 most populous countries in 2020, sorted in descending order, using data from the UN World Population Prospects 2019. The visualization refactors a previous episode into reusable React components, with the SVG rendered via React elements. It uses d3.scaleBand for the categorical y-axis, d3.scaleLinear for the numeric x-axis, and d3.csv for data loading. Axes and marks are extracted into separate modules, improving code organization and reusability across episodes.
AI-generated descriptionMIT Licensed