🌍 Public
Viewing a saved revision (read-only)
6ecee47ce33f4c92abbdf62153620afa
Bar Chart
This example displays a horizontal bar chart ranking countries by population, using a CSV dataset of ten nations. The visualization is built with D3.js v5, using `scaleLinear` and `scaleBand` to map population values and country names to SVG rectangles. The axes are generated with `axisLeft` and `axisBottom`, and the bars are rendered as SVG `rect` elements. Data is loaded via `d3.csv` and converted from raw values to thousands.
AI-generated descriptionAn example showing the capabilities of VizHub.