Skip to main content
100%

Activity6_Q1

✓ Published0🌍 Public
MMili Patel
Last edited Mar 29, 2025
Created on Mar 29, 2025
Forked from Activity6_task1

This example shows a horizontal bar chart ranking the top 10 countries by population in the year 2000, drawn as an SVG using D3 v7. The chart uses `d3.scaleLinear` for the x-axis (population) and `d3.scaleBand` for the categorical y-axis (countries), with data loaded from a CSV via `d3.csv`. Green rectangles encode each value, and the axes are generated with `d3.axisBottom` and `d3.axisLeft`. The data is pre-sorted in descending order before slicing to the first 10 entries.

AI-generated description
MIT Licensed

Similar vizzes