Fork of Pathetic Bar Chart
✓ Published0🌍 Public
This example displays the top 10 most populous countries as a set of horizontal bars with no axes, using React hooks to manage state and load data. The visualization fetches a CSV file from a GitHub gist and renders SVG rectangles scaled by age values, which stand in for population. It implements scales with d3.scaleBand for the y-axis positioning and d3.scaleLinear for the x-axis widths. The chart updates asynchronously, showing a loading message before the bars appear once the data arrives via d3.csv.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.
MIT Licensed