Making a bar chart
✓ Published1🌍 Public
This example shows a horizontal bar chart of country sizes, using D3 v5 with an SVG rendering approach. The chart maps country names to the y-axis and size values to the x-axis using `scaleBand` and `scaleLinear`, with axes added via `axisLeft` and `axisBottom`. Data is loaded from a CSV file and parsed with `d3.csv`, and bars are rendered as rectangles with a steelblue fill.
AI-generated descriptionMIT Licensed