Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

piechart

Public visualization

piechart

0 stars0🌍 Public
LLayaMyadam@my.unt.edu
Last edited Apr 28, 2024
Created on Apr 26, 2024
Forked from HTML Starter

This is an interactive pie chart that visualizes the average values of 11 socioeconomic indicators—such as fertility rate, life expectancy, and literacy rate—for a selected continent. The user selects a continent from a dropdown menu, and the chart updates its arcs accordingly. Built with D3.js v7 and rendered as SVG, it loads CSV data from a GitHub repository, uses `d3.pie` and `d3.arc` to generate the chart, and applies a `d3.scaleOrdinal` color scale. A custom legend shows each indicator’s color.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed