Skip to main content
100%

Module 3 Exercise -- Life Expectancy for all the countries.

✓ Published0🌍 Public
PP7h
Last edited Apr 5, 2015
Created on Apr 5, 2015

A clustered bar chart displays life expectancy at birth in years for a subset of countries in 2012, drawn from a CSV file. The chart presents country names on the y-axis and horizontal bars proportional to their life expectancy values, with each bar labeled by its data value. The visualization sorts the data in descending order and samples every few rows to manage the dataset size. It is rendered as SVG using D3 v3, where the code loads the CSV via `d3.csv`, sorts with `d3.descending`, and appends rectangles and text elements to the SVG canvas.

AI-generated description

Similar vizzes