Skip to main content
100%

activity7.1

✓ Published0🌍 Public
KKavyaEti
Last edited Nov 6, 2024
Created on Nov 6, 2024
Forked from Hello VizHub

This example visualizes the distribution of weather conditions from a CSV dataset as a pie chart. It counts occurrences of each condition, then renders the chart using D3 v7's `d3.pie` and `d3.arc` APIs, with slices colored via `d3.scaleOrdinal` and `d3.schemeCategory10`. Labels display each condition near its slice, and a separate legend is built using `d3.select`. The SVG output is 600 by 600 pixels, with data loaded asynchronously via `d3.csv` from a GitHub Gist.

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