Refactored code -- stylized Bar chart
This visualization displays the top 10 most populous countries as a horizontal bar chart, using data from the United Nations World Population Prospects 2019. Built with React and D3 v5, the SVG renders bars, left-aligned country labels, and a bottom axis with population values formatted in billions. The code demonstrates reusable components (Marks, AxisBottom, AxisLeft) and accessor functions to decouple the data mapping, with styling applied via the Poppins font and a custom color scheme.