Fork of Activity 6_Task 1
✓ Published0🌍 Public
This example presents a horizontal bar chart showing population by country, with each bar’s length encoding the population value and country names on the y-axis. The chart uses React to render SVG elements, with scales and axes created via d3.scaleBand and d3.scaleLinear. Data is loaded asynchronously from a CSV file using d3.csv, and population values are formatted using d3.format to display compact labels like billions. The visualization includes axis labels, tick marks, and styled bars with distinct colors.
AI-generated descriptionMIT Licensed