Skip to main content
100%

Scatter plot

✓ Published0🌍 Public
LLonwabo11
Last edited May 9, 2019
Created on May 6, 2019
Forked from Scatter plot

A scatter plot visualizes the population of ten countries, using horizontal bars to represent each nation's total population. The data is loaded from a CSV file and rendered as SVG rectangles whose widths are scaled proportionally to population values. Built with D3 v5, the example employs `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to construct the chart, while manual DOM selection and appending via `select` and `append` manage the SVG elements.

AI-generated description

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

MIT Licensed

Similar vizzes