Assignment 2 Q 1
✓ Published0🌍 Public
This example displays a pie chart depicting plant species populations. It fetches data from a remote gist file, parses the text to extract each species and its corresponding population, and renders the chart as an SVG. The visualization uses D3 v6, specifically the `d3.pie` and `d3.arc` layouts, to create the pie segments and position labels. Each slice is colored using `d3.schemeCategory10`, and the chart is centered within a 400x400 pixel container.
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