Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making Bar Charts

Public visualization

Making Bar Charts

0 stars2🌍 Public
Mmesclics
Last edited Feb 24, 2020
Created on Feb 24, 2020

A horizontal bar chart displays population figures for ten countries, with bars sorted alphabetically by country name. The visualization uses D3 v5 APIs including `scaleLinear`, `scaleBand`, `axisLeft`, `axisBottom`, and `csv` to load data from a local CSV file. Data values are converted from strings to numbers and scaled to fit an SVG canvas, with custom tick formatting replacing "G" with "B" for billion. The chart renders blue rectangles via SVG, with margins applied to accommodate axis labels, and removes default domain lines from the y-axis.

AI-generated description

A bare minimum HTML page.

Comments

Sign in to join the discussion.

MIT Licensed