Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
EEdoardoRegini
Last edited Mar 27, 2020
Created on Mar 27, 2020
Forked from Black Canvas

This example displays a horizontal bar chart of population data for ten countries, ordered by descending population size. The visualization uses D3 v5 with an SVG rendering approach, employing `scaleLinear` for the x-axis, `scaleBand` for the categorical y-axis, and `axisLeft` and `axisBottom` for the axes. Data is loaded asynchronously from a CSV file using `csv`, then parsed and mapped to rectangular bars whose widths are proportional to each country’s population.

AI-generated description
MIT Licensed

Similar vizzes