Skip to main content
100%

Activity7.1.1

✓ Published0🌍 Public
Ttejaswiteju9811@gmail.com
Last edited Nov 7, 2024
Created on Nov 1, 2024
Forked from Hello VizHub

This example shows a pie chart of death rates from air pollution for the top 15 entities, with each slice labeled by entity name and percentage contribution. The visualization aggregates data from a CSV file, sorts it by total deaths, and renders an SVG pie chart with a legend. It uses d3.csv for data loading, d3.pie and d3.arc for chart generation, d3.scaleOrdinal for color mapping, and d3.format for value labeling, with the chart centered in a fixed-width SVG.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes