Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Monthly temperature

Public visualization

Viewing a saved revision (read-only)

ed7e4f3de0874ed1b285d3a790919b49

Monthly temperature

0 stars0🌍 Public
Rreddyakanksha304@gmail.com
Last edited Nov 8, 2024
Created on Nov 8, 2024
Forked from Hello VizHub

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 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.