Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
Cclaudiatomateo
Last edited May 17, 2020
Created on May 16, 2020

This bar chart displays the populations of ten countries, with horizontal bars ordered from most to least populous. The visualization uses D3 v5 to load CSV data, map population values to a linear scale, and country names to a band scale, rendering the resulting bars and axes as SVG. The chart highlights the data with pink bars, leaving the x-axis unlabeled, and includes substantial left margin space for country names. The code imports specific D3 functions such as `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to construct the graphic.

AI-generated description

This research was done with AAA source

MIT Licensed

Similar vizzes