Skip to main content
100%

Fork of Population BarChart (React & D3)

✓ Published0🌍 Public
Aarchanagoli@my.unt.edu
Last edited Mar 21, 2024
Created on Mar 21, 2024

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 description

The top 10 most populous countries as a horizontal bar chart.

MIT Licensed

Similar vizzes