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 displays population figures for ten countries using horizontal bars, with each bar’s length proportional to population. The visualization uses D3.js v5 with SVG rendering, employing `scaleLinear` for the x-axis and `scaleBand` for the categorical y-axis. Data from `data.csv` is loaded via `csv()`, and population values are multiplied by 1000. Axes are rendered with `axisLeft` and `axisBottom`, while rectangles are appended to the SVG group to represent the bars.

AI-generated description

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

MIT Licensed

Similar vizzes