Skip to main content
100%

Making a bar chart

✓ Published1🌍 Public
RRod Potter
Last edited Apr 23, 2019
Created on Apr 23, 2019

This horizontal bar chart ranks the ten most populous countries using population data from a CSV file, with bars scaled linearly by population size and country names on the categorical y-axis. The visualization uses D3 v5’s `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to render axes and bars as SVG rectangles, while `csv` loads the data and `max` computes the domain. Population values are multiplied by 1,000 to reflect actual figures, and the chart is styled via CSS with steel-blue bars and large text.

AI-generated description
MIT Licensed

Similar vizzes