Stylized Bar Chart
✓ Published0🌍 Public
This example shows a horizontal bar chart of the top 10 countries by 2020 population, with bars rendered in a teal color and labeled axes using the Poppins font. The visualization loads UN population data from a CSV file via `d3.csv`, processes the values, and scales the bars using D3’s `scaleBand` and `scaleLinear`. It is built with React components for the axes and marks, styling ticks and labels through CSS classes. The chart uses D3 v5 and React 16.9, with axes generated from `xScale.ticks()` and `yScale.domain()`.
AI-generated descriptionMIT Licensed