Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's create a Bar Chart!

Public visualization

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.

Comments

Sign in to join the discussion.

MIT Licensed