Skip to main content
100%

Scatter plot

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

This scatter plot displays the population of ten countries using a bar-style layout, with each country positioned along a band scale and bar width proportional to population values loaded from a CSV file. Built with D3.js v5, the visualization uses `d3.csv` for data loading, `scaleLinear` and `scaleBand` to map population and country names to SVG coordinates, and renders axes via `axisLeft` and `axisBottom`. The SVG canvas is populated with rectangles whose widths derive from the x-scale, while the y-axis labels countries in descending order of population.

AI-generated description

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

MIT Licensed

Similar vizzes