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