Skip to main content
100%

Pie Chart

✓ Published1🌍 Public
Hharika-1929
Last edited Jun 30, 2022
Created on Jun 30, 2022

This pie chart displays the pollution levels of ten US states, with each slice labeled and colored to represent a state’s relative contribution. The visualization uses D3.js v5’s `d3.pie()` and `d3.arc()` generators to compute slice angles and paths, rendering the chart as SVG elements in a 900×450 pixel canvas. The code assigns slice colors based on an ordinal scale and includes a legend alongside the chart. The data is embedded directly in the script, and the title indicates the focus on state-level pollution metrics.

AI-generated description
MIT Licensed

Similar vizzes