Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6_task1_question1

Public visualization

Viewing a saved revision (read-only)

deb000554bea434ea6742bda9c8eb747

Activity 6_task1_question1

0 stars0🌍 Public
Cchandrikachowdary867@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024

This example displays a horizontal bar chart showing the top 10 most populated countries in the year 2000, sorted in descending order by population. The visualization uses d3.csv to load population data from a GitHub-hosted CSV file, then filters and sorts the dataset. Bars are rendered as SVG rectangles using D3 v7’s scaleLinear for the x-axis and scaleBand for the categorical y-axis. Axes are added with d3.axisBottom and d3.axisLeft, with labels for population and country.

AI-generated description