Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Billionaires Bar Char in D3

Public visualization

Viewing a saved revision (read-only)

0b577029b896471a8cd2c6fa7a83922a

Billionaires Bar Char in D3

0 stars0🌍 Public
EEunice Tu
Last edited Feb 17, 2024
Created on Feb 17, 2024
Forked from Bar Char in D3

A horizontal bar chart compares the average worth of billionaires by inheritance type, using a band scale for categorical labels and a linear scale for worth values. Built with D3 v7, the SVG visualization reads data from a remote CSV file containing billionaire statistics. The code demonstrates the `d3.csv` data-loading method, `d3.scaleBand` and `d3.scaleLinear` for axes, and `d3.axisLeft`/`d3.axisBottom` to render gridlines and tick marks. Each rectangle's height and width derive from the scales, with steelblue fill styling applied via CSS.

AI-generated description