Refactored Bar Chart
✓ Published1🌍 Public
This visualization presents a horizontal bar chart comparing the 2020 populations of ten countries, sourced from UN World Population Prospects data on GitHub. Built with React and D3 v7, it renders SVG marks using scales: `scaleBand` positions countries along the y-axis, while `scaleLinear` maps population values to bar widths. The chart explicitly defines reusable components for axes and marks, with `AxisBottom` generating ticks and `AxisLeft` labeling country names, all within a fixed viewport. The data loads asynchronously via `csv`, showcasing a clean, modular refactoring approach.
AI-generated descriptionA program that loads in some data about World Population Prospects from the UN.
MIT Licensed