Skip to main content
100%

Scatter plot

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

A scatter plot displays the population of ten countries using horizontal bars positioned along a linear scale, with country names on a band scale. The visualization loads population data from a CSV file and renders it as an SVG using D3.js v5. The code employs `d3.csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to construct the chart, transforming raw population values by multiplying them by 1,000. Bar widths correspond to population totals, while the y-axis lists each country in descending order.

AI-generated description

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

MIT Licensed

Similar vizzes