Scatter plot
✓ Published0🌍 Public
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 descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.
MIT Licensed