Skip to main content
100%

Bar Chart

✓ Published0🌍 Public
Ssourcebox-bug
Last edited Apr 15, 2019
Created on Apr 13, 2019

A bar chart displays population counts for ten countries, with horizontal bars labeled by country name and sized proportionally to population. The example demonstrates basic D3.js v5 DOM manipulation by loading data from a CSV file, converting string values to numbers, and using `scaleLinear` and `scaleBand` to map data to pixel dimensions. The SVG rendering appends rectangles directly to the chart based on the loaded dataset.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.

MIT Licensed

Similar vizzes