🌍 Public
Viewing a saved revision (read-only)
55b1946341a44eacaa8af032d69e5d43
Let's make a face using D3.js
This example visualizes a bar chart of country data from a CSV file, with horizontal bars representing lengths per country. The chart uses D3.js v5 to load the data, scales the lengths linearly, and positions the countries with a band scale. Rectangles are appended to an SVG container, with the chart area offset by margins. The code relies on D3’s `csv`, `scaleLinear`, `scaleBand`, and `select` APIs, and renders directly to SVG.
AI-generated description