Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

activity6_Task1

Public visualization

Viewing a saved revision (read-only)

de963a38647f4065a99823fdf2e1dab5

activity6_Task1

0 stars1🌍 Public
Ssudheervnarasimha1@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Activity 7

This visualization displays a horizontal bar chart comparing the populations of ten countries for the year 2000, sourced from a CSV file loaded via d3.csv. It uses React with d3.v5, rendering SVG bars with d3.scaleBand for the y-axis and d3.scaleLinear for the x-axis. A custom d3.format with the '.2s' specifier converts values to billions, and each bar includes an SVG title element for tooltips. Axes are built with tick components that generate lines and text labels.

AI-generated description

A demonstration of how to start using D3 version 6.