Bar Chart
✓ Published1🌍 Public
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.
MIT Licensed