Skip to main content
100%

Bar chart

✓ Published0🌍 Public
KKelseyXu5
Last edited Jan 15, 2022
Created on Jan 15, 2022
Forked from Let's make an Face

This bar chart displays population figures for ten countries, with horizontal bars ranked from largest to smallest population. The visualization uses SVG rendering with D3 v7’s scaleLinear and scaleBand to map population values and country names to bar lengths and positions. The x-axis is generated with axisBottom, while the y-axis uses axisLeft. Data is loaded from a CSV file using d3.csv, with the population column multiplied by 1000 before rendering. The chart employs a steelblue fill for the bars and includes margins to accommodate axis labels.

AI-generated description
MIT Licensed

Similar vizzes