🌍 Public
Viewing a saved revision (read-only)
9efc9773a6fc41579eb43b52e368601c
Making a bar chart
This example demonstrates how to build a horizontal bar chart showing population figures for ten countries, with population values scaled by a factor of one thousand. The visualization uses D3 v5 to load CSV data, create linear and band scales, and render SVG rectangles with axes. Country names appear on the y-axis via `axisLeft`, while population values are displayed on the x-axis using `axisBottom`. The chart is styled with steelblue bars and custom font sizing through external CSS.
AI-generated descriptionAn example showing the capabilities of VizHub.