Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart - 072019

Public visualization

Viewing a saved revision (read-only)

1a39dbb5e4114202bd1c8c38d2c8a2ee

Making a Bar Chart - 072019

0 stars1🌍 Public
Mmahakalwebsite
Last edited Jul 21, 2019
Created on Jul 21, 2019

This bar chart displays population figures for ten countries, sourced from a CSV file where values are multiplied by 1,000 for readability. Using D3 v5’s `scaleLinear` and `scaleBand`, it maps population to horizontal bar widths and country names to vertical bands. The SVG chart includes `axisLeft` and `axisBottom` for labeled axes, with bars rendered as `rect` elements. The code imports specific D3 modules—`select`, `csv`, `max`, and axis/scale functions—and applies a steelblue fill via CSS.

AI-generated description