Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's create a Bar Chart!

Public visualization

Viewing a saved revision (read-only)

f9a5d576bcc04bb5b3c8f87f9cc1ae88

Let's create a Bar Chart!

0 stars0🌍 Public
GGaurav Prachchhak
Last edited Jan 22, 2020
Created on Jan 22, 2020

This visualization uses the D3.js v5 library within a React framework to render a horizontal bar chart as an SVG. It displays population data for ten countries from a CSV file, mapping each country name to a bar whose length is proportional to its population using `scaleLinear` and `scaleBand`. The chart is drawn inside an SVG container with margins calculated from the fixed width and height attributes.

AI-generated description

A bare minimum HTML page.

See also React Starter.