Fork of Population BarChart (React & D3)
✓ Published0🌍 Public
This example shows the ten most populous countries in a horizontal bar chart, ordered by their sales values. The chart uses React for component structure and D3 v5 for data loading and scales, specifically `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. The data is fetched as CSV from a GitHub gist, and the SVG rendering displays tick lines, tick labels, and green rectangles for each bar. The visualization centers itself within the viewport and includes a distinct left margin for country labels.
AI-generated descriptionThe top 10 most populous countries as a horizontal bar chart.
MIT Licensed