task 9_ question 1
✓ Published0🌍 Public
This example displays a pie chart that visualizes the distribution of two categorical outcomes, "play" and "noplay", from a weather dataset. The chart is rendered as an SVG using D3.js, with data loaded from a CSV file via `d3.csv()`. It uses D3's `pie()` and `arc()` functions to compute the chart geometry and a `scaleOrdinal()` for color mapping, with a legend added on the right.
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