Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Final Project: Life Expectancy Bar Chart

Public visualization

Viewing a saved revision (read-only)

2d4c9aa7106146fcbdefbe077f799479

Final Project: Life Expectancy Bar Chart

0 stars2🌍 Public
Mmhzahdeh@dons.usfca.edu
Last edited May 4, 2025
Created on Feb 28, 2025

This interactive bar chart visualizes the average life expectancy of the top 30 countries, with each bar's length and color intensity representing the life expectancy value. The visualization uses D3.js v7, rendering with SVG, and leverages the d3-legend and d3-annotation libraries for a color legend and explanatory labels. It reads data from a CSV file containing country and life expectancy figures, positioning horizontal bars on a categorical Y-axis and a linear X-axis. Hovering over a bar triggers a tooltip displaying the country name and its exact life expectancy value.

AI-generated description