Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Barchart using csv

Public visualization

Barchart using csv

0 stars0🌍 Public
Rremyapk
Last edited Mar 13, 2020
Created on Mar 11, 2020
Forked from Untitled

This example presents a horizontal bar chart of country populations, with each bar’s length corresponding to its population value from a CSV file. Using D3 v4, it loads `data.csv` with `d3.csv` and renders SVG rectangles, scaled linearly on the x-axis and banded on the y-axis. The chart displays axes via `d3.axisLeft` and `d3.axisBottom`, applies margins through a translated group, and styles bars blue via CSS.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed