🌍 Public
Viewing a saved revision (read-only)
f206813fac084aff8799edf376a8c019
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.