Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar Chart Starter

Public visualization

Bar Chart Starter

0 stars1🌍 Public
JJose Manuel Beas
Last edited Jan 19, 2020
Created on Jan 19, 2020
Forked from D3 Starter

This bar chart displays population counts for ten countries, ranging from China to Mexico. It uses D3 v5 with SVG rendering, importing specific modules like `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to construct the visualization. The `csv` function loads data from data.csv, which is then parsed and scaled. Horizontal bars are appended as SVG rect elements, with the y-axis listing country names and the x-axis representing population values.

AI-generated description

Aprendiendo D3

Comments

Sign in to join the discussion.

MIT Licensed