🌍 Public
Viewing a saved revision (read-only)
d4110d7152d84afd91fc54feb8adf92e
Pie Chart
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