Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6 tutorial 1 task 1

Public visualization

Viewing a saved revision (read-only)

c4c7dd29b2c24865a390ef99b6e3f06a

Activity6 tutorial 1 task 1

0 stars0🌍 Public
Nnissisharon61@gmail.com
Last edited Apr 1, 2025
Created on Apr 1, 2025

This example presents a horizontal bar chart comparing the populations of ten countries in the year 2000. The visualization uses D3 v7 with an SVG rendering approach, employing `d3.scaleLinear` for the x-axis, `d3.scaleBand` for the y-axis, and `d3.axisBottom` and `d3.axisLeft` for the axes. The data is loaded asynchronously from a CSV file using `d3.csv`. Rectangular marks are colored light green, with axis labels formatted to abbreviate large population values.

AI-generated description