Skip to main content
100%

Fork of ACTIVITY_6_TASK1

✓ Published1🌍 Public
Ssravani1969@gmail.com
Last edited Mar 28, 2025
Created on Mar 28, 2025
Forked from ACTIVITY_6_TASK1

This horizontal bar chart shows the 2020 population of the top 30 countries, with bars sorted by country name and scaled linearly by population. The visualization uses the D3 v7 library to render SVG elements, with `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the y-axis. Population values are formatted with `d3.format` to display in billions or millions, and the data is loaded asynchronously from a CSV file using `d3.csv`. Rectangles are appended to the chart with a light green fill, while axis labels are positioned using SVG transforms.

AI-generated description
MIT Licensed

Similar vizzes