Skip to main content
100%

dv2020-ep23-viz23 - bar chart, refactor

✓ Published1🌍 Public
Zzach b.
Last edited Mar 15, 2023
Created on Mar 15, 2023

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 description
MIT Licensed

Similar vizzes