Making a bar chart
✓ Published1🌍 Public
This example demonstrates a horizontal bar chart visualizing population data for ten countries, with each bar’s length proportional to population size and country names listed on the y-axis. The visualization uses D3 v5’s `csv` loader to import data, `scaleLinear` for the x-axis, `scaleBand` for the y-axis, and `axisLeft`/`axisBottom` to render tick marks. The SVG-based rendering applies a steelblue fill to rectangles, with data values converted from thousands to absolute numbers.
AI-generated descriptionAn example showing the capabilities of VizHub.
MIT Licensed