🌍 Public
Viewing a saved revision (read-only)
2680e2095b284ed08ca05f99e5cd8389
Assignment-3-Siri Gayatri
This interactive D3.js pie chart visualizes Delhi temperature trends from a 120-day sample by categorizing daily mean temperatures into cold, mild, warm, and hot ranges. The visualization aggregates the data using `d3.rollup` to count occurrences per temperature category, then renders each slice with `d3.pie()`, `d3.arc()`, and `d3.scaleOrdinal(d3.schemeCategory10)` for coloring. A custom legend with color squares and day counts complements the SVG chart, which is centered at coordinates (200,200) with a 180-pixel radius. The data source is fetched from a public GitHub gist containing raw weather measurements.
AI-generated description