Skip to main content
100%

Activity 6_tutorial1

✓ Published0🌍 Public
Ssairohithchada@gmail.com
Last edited Apr 1, 2025
Created on Apr 1, 2025
Forked from Hello VizHub

This horizontal bar chart displays the 2020 population estimates for the top 30 countries, with countries listed along the y-axis and population values mapped to bar length on the x-axis. The visualization uses a linear scale for population and a band scale for country categories, rendering light green bars as SVG rectangles via the `d3.scaleLinear` and `d3.scaleBand` APIs. The bottom axis includes a custom tick format that converts millions to billions (e.g., "1.2B"), and both axes are labeled. Data is loaded asynchronously from a CSV file using `d3.csv`.

AI-generated description
MIT Licensed

Similar vizzes