Skip to main content
100%

Task9and10_PR_1

✓ Published0🌍 Public
Ppravallikaratankanthkatragadda@my.unt.edu
Last edited Apr 28, 2024
Created on Apr 28, 2024
Forked from Hello VizHub

This example presents a pie chart visualizing the distribution of favorite fruits among students, using a dataset of six categories such as Mango, Orange, and Plum. The chart is rendered as an SVG with D3 v7, employing `d3.pie()` to compute arc angles and `d3.arc()` to generate the path shapes. A categorical color scale (`d3.scaleOrdinal` with `schemeCategory10`) assigns distinct colors to each segment, while a custom legend lists the fruit categories alongside colored rectangles. The visualization also includes axis labels and a GitHub link pointing to the raw CSV data source.

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