activity7.1
✓ Published0🌍 Public
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 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