Fork of Pathetic Bar Chart
✓ Published1🌍 Public
This example shows a horizontal bar chart of the top 10 most populous countries in 2020, with population values displayed along the x-axis using a D3 linear scale and country names on the y-axis. The visualization is rendered as an SVG using React, with axes and bars constructed from D3 scale objects and mapped to SVG elements. Data is loaded from a CSV file of the United Nations World Population Prospects via D3’s `csv` loader. The `AxisBottom`, `AxisLeft`, and `Marks` components format ticks and tooltips using D3’s `format` function.
AI-generated descriptionA program that shows the top 10 most populous countries.
MIT Licensed