Making a Bar Chart
✓ Published0🌍 Public
This example shows a horizontal bar chart ranking the populations of the ten most populous countries. It uses D3.js v5's `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to map data from a CSV file to SVG rectangles. The chart displays population values on the x-axis and country names on the y-axis, with a green fill applied to all bars via CSS.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.
MIT Licensed