🌍 Public
Viewing a saved revision (read-only)
79b4e0b8537e46ff853364342e83dad7
KH makes a barchart with D3.js
This is a horizontal bar chart made with D3.js (version 7) and rendered as an SVG, showing the populations of ten countries (in thousands) from a local CSV file. The view uses `scaleLinear` for the x-axis and `scaleBand` for the y-axis, with populations read from the data and multiplied by 1,000 before being drawn as rectangles. Axes are added with `axisLeft` and `axisBottom`, and the chart is built by appending a group element and then entering rectangles, all styled with a steelblue fill.
AI-generated description