Fork of Stylized Bar Chart
✓ Published0🌍 Public
This example visualizes the top 10 most populous countries as a horizontal bar chart using React and D3 v5. It loads population data from the United Nations World Population Prospects 2019 via a CSV file, then renders SVG rectangles scaled with `scaleLinear` for population and `scaleBand` for country names. A title tooltip using the HTML `<title>` element displays formatted values. Styled with the Poppins font and teal-colored bars, the chart includes custom axes created with `AxisBottom` and `AxisLeft` components, and formats large numbers using D3’s `format` with SI prefixes.
AI-generated descriptionA program that shows the top 10 most populous countries as a bar chart.
MIT Licensed