Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's make a BAR CHART with D3.js!

Public visualization

Let's make a BAR CHART with D3.js!

0 stars1🌍 Public
Ssoniyaa-dv
Last edited Jul 22, 2020
Created on Jul 22, 2020
Forked from Smiley face

A bar chart displays happiness scores for ten countries, with horizontal bars sorted from Finland’s highest score to Austria’s lowest. The visualization loads data from a CSV file and renders SVG rectangles using D3 v5’s `scaleLinear` for bar widths, `scaleBand` for vertical positioning, and `selectAll`–`data`–`enter` joins. The chart fills the entire 960×500 SVG canvas, with no axes or labels, emphasizing raw score comparisons across countries.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed