Skip to main content
100%

No6

✓ Published0🌍 Public
LLTymn
Last edited Apr 7, 2015
Created on Apr 7, 2015

A horizontal bar chart displays countries’ life expectancy at birth, sorted in descending order so the longest-living nations appear at the top. Each bar’s width is proportional to the life-expectancy value, and hovering reveals a tooltip with the country name and exact figure via a `title` element. The code loads data from a CSV file, sorts it with `d3.descending`, and renders the SVG rectangles using D3 v3’s data join (`selectAll`, `enter`, `append`). The chart uses a white SVG canvas set against a turquoise page background.

AI-generated description

Similar vizzes