🌍 Public
Viewing a saved revision (read-only)
7dee6697e6874a4da58c8fc8a63496dd
Activity8_task_sahith
This bar chart displays population figures for 30 countries in 2020, using a horizontal layout where each bar represents a country and its length encodes population size. Built with React and D3 v5, the visualization uses `scaleBand` for the categorical y-axis, `scaleLinear` for the quantitative x-axis, and SVG `rect` elements for the bars. Data is loaded from a remote CSV file via D3’s `csv` function, with population values converted from strings to numbers. Custom axis components render tick marks and labels, and tooltips show the formatted population value on hover.
AI-generated descriptionA demonstration of how to start using D3 version 6.