Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity_6_question-1.1

Public visualization

Viewing a saved revision (read-only)

629376f5dc0d4319b6745f05c3350ca3

Activity_6_question-1.1

0 stars1🌍 Public
AAbrarb702@gmail.com
Last edited Oct 24, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This visualization displays a horizontal bar chart comparing the populations of ten countries in the year 2020, sourced from a CSV file hosted on GitHub. The example demonstrates how to integrate D3 v5 within a React component, using `scaleBand` for the categorical y-axis, `scaleLinear` for the quantitative x-axis, and `format` for axis tick labels (e.g., converting billions to "B"). SVG rectangles render the marks, with tooltips showing precise values via the native `<title>` element.

AI-generated description

A demonstration of how to start using D3 version 6.