Skip to main content
100%

Create bar chart!

✓ Published0🌍 Public
Sssd4
Last edited Feb 12, 2020
Created on Feb 10, 2020

A bar chart displays population figures for ten countries, with bar length proportional to population and each bar labeled by country name. The visualization uses D3 v5’s `scaleLinear` for the x-axis population scale and `scaleBand` for the categorical y-axis country bands. Data is loaded from a CSV file via D3’s `csv` function, with population values parsed and multiplied by 1000. The SVG rendering appends rectangles directly to the canvas, using the scales to set each bar’s width and height based on the data.

AI-generated description
MIT Licensed

Similar vizzes