Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's make a face with D3.js

Public visualization

Let's make a face with D3.js

0 stars2🌍 Public
RResl411
Last edited Nov 6, 2019
Created on Nov 6, 2019

This example shows a horizontal bar chart of the world’s ten most populous countries, using population values from a CSV file. The chart ranks countries by population, with bars rendered as steelblue rectangles on an SVG canvas. The code uses D3 v5’s `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to load the data, map population to bar widths, and draw axes. The `render` function appends a group, axes, and rectangles, while CSS styles the visual elements.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed