🌍 Public
Viewing a saved revision (read-only)
b4a66f367c3e44c2a4ee6ed7e7878aa9
Make a bar chart
A horizontal bar chart displays the population of five countries, using steel-blue rectangles to encode values from a CSV file. The visualization uses D3 v5’s `scaleLinear` for the x-axis, `scaleBand` for the categorical y-axis, and `axisLeft` and `axisBottom` to render ticks. Data is loaded via `csv`, with population numbers converted from thousands, and the SVG is appended to a 960x500 viewport.
AI-generated descriptionAn example showing the capabilities of VizHub.