Skip to main content
100%

Fork of Pie Chart

✓ Published0🌍 Public
Zzjutkarma
Last edited Apr 24, 2022
Created on Apr 24, 2022
Forked from HTML Starter

This fork of Observable’s pie chart example embeds an interactive D3.js (v5) visualization via an iframe into a minimal HTML page. The chart renders the U.S. population by age group, using `d3.pie()` and `d3.arc()` to draw wedges, with a spectral color scale and labels positioned by `d3.arc().centroid`. Data comes from a local CSV file. The styling is handled with CSS, and the code leverages Observable’s `PieChart` function.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes