Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Question1.2

Public visualization

Viewing a saved revision (read-only)

33eef91eaae14e72943b20d50c3a54f8

Question1.2

0 stars0🌍 Public
AAnushaHyderaboeni@my.unt.edu
Last edited Apr 6, 2025
Created on Apr 6, 2025
Forked from Hello VizHub

This bar chart displays the population of the top 20 countries in 2010, using a linear scale for population and a band scale for country names. The visualization renders horizontal bars in SVG, with red rectangles representing each country’s population, and includes axis labels for both population and countries. Data is loaded asynchronously from a CSV file via `d3.csv`, and the chart is constructed using D3 v7’s `scaleLinear`, `scaleBand`, and `axisBottom`/`axisLeft` components to build the axes and marks.

AI-generated description

A demonstration of how to start using D3 version 6.