Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar Charts

Public visualization

Viewing a saved revision (read-only)

9a380eb284e741569eba87b7b63b7b31

Bar Charts

0 stars0🌍 Public
UUwe Kristen
Last edited Oct 16, 2020
Created on Oct 16, 2020
Forked from Face

This bar chart displays the population of three countries—China, India, and the US—using horizontal bars whose widths are proportional to population values. The visualization reads data from a CSV file via `d3.csv`, converts the population strings to numbers, and renders SVG rectangles using `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the categorical y-axis. D3 v6 and React are used, with bars positioned and sized through the scales’ range and bandwidth methods.

AI-generated description

A bare minimum HTML page.

See also React Starter.