Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

task 9

Public visualization

task 9

0 stars0🌍 Public
Cchandrikachowdary867@gmail.com
Last edited Apr 28, 2024
Created on Apr 28, 2024
Forked from Hello VizHub

This visualization shows the humidity distribution among the top ten weather stations, displayed as a pie chart with labeled slices and a color-coded legend. The code loads data from a CSV file via `d3.csv`, converts humidity values to numbers, and sorts them before selecting the highest ten. Using D3 v7 APIs, it builds the chart with `d3.pie()` and `d3.arc()`, applies a categorical color scale with `d3.scaleOrdinal`, and renders labels at slice centroids. An SVG-based legend lists each station with its corresponding color and percentage.

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.

Comments

Sign in to join the discussion.

MIT Licensed