🌍 Public
Viewing a saved revision (read-only)
642faa76bf704a35b0a12521584c5d0b
Making a Barchart
This example shows a horizontal bar chart of the populations of ten countries, sorted by size descending. Population values are encoded as bar widths on a linear scale, while country names are positioned on a categorical band scale. The visualization uses D3 v7 APIs including `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to render SVG elements. Data is loaded from a CSV file and parsed with D3's `csv` function.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.