Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a bar chart

Public visualization

Making a bar chart

0 stars2🌍 Public
Ppml31780
Last edited Nov 6, 2022
Created on Nov 5, 2022

This example visualizes the population of the top ten most populous countries in 2017 using a horizontal bar chart. The chart maps country names to the y-axis with a band scale and population values to the x-axis via a linear scale, with bars rendered as SVG rectangles. It uses D3 v7 modules including `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`, and formats axis tick labels with `format('.3s')` to display values in billions. The data, from World Population Prospects 2017, is loaded from a local CSV file where population figures are multiplied by 1000.

AI-generated description

Utilisation du framework D3.JS Création de graphique : BAR CHART

Ce graphique affiche la population des 10 premiers pays les plus peuplés du monde en 2017.

Lien World Population Pro spects 2017.

Comments

Sign in to join the discussion.

MIT Licensed