Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Making a Bar Chart

0 stars1🌍 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

Comments

Sign in to join the discussion.

MIT Licensed