Monthly temperature
✓ Published0🌍 Public
This example visualizes average monthly temperatures across U.S. states for January 1950 as a pie chart, with each slice representing a state’s temperature in degrees Fahrenheit. The chart uses an ordinal color scale and labels each slice with the state name and temperature value. Built with D3 v5, it loads CSV data from a GitHub gist, filters the dataset by month and year, and renders an SVG pie chart using `d3.pie` and `d3.arc`, with text labels positioned via `arc.centroid`.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed