Skip to main content
100%

Assignment 2 Q 1

✓ Published0🌍 Public
RRishabh Sharma
Last edited Apr 13, 2024
Created on Apr 13, 2024
Forked from Activity-6

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 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