Final Project: Life Expectancy Bar Chart
✓ Published2🌍 Public
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 descriptionMIT Licensed