Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

b5660f2bb5b54d54b11b591766fa158e

Making a Bar Chart

0 stars3🌍 Public
Iianleekq
Last edited Feb 13, 2019
Created on Feb 11, 2019

This bar chart displays population figures for ten countries, sourced from United Nations data in a CSV file. It encodes country names on the y-axis using `scaleBand` and population values on the x-axis with `scaleLinear`, rendering steelblue rectangles in SVG. The code builds the visualization with d3.csv, axis generators `axisLeft` and `axisBottom`, and margin-based layout, appending a group element to position the chart within the SVG canvas.

AI-generated description

This bar chart...UN.