Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Assignment2 Question1

Public visualization

Viewing a saved revision (read-only)

0c11651bad794e7bb3544c12e8f5adf4

Assignment2 Question1

0 stars1🌍 Public
Ppslharika@gmail.com
Last edited Apr 13, 2024
Created on Apr 11, 2024
Forked from Assignment 2

A pie chart visualizes sales distribution across five product categories, with each slice labeled and sized proportionally to its sales value. The chart uses D3.js v7 with SVG rendering, employing `d3.pie` to compute arc angles and `d3.arc` to generate the paths. A color ordinal scale assigns distinct hues to categories, while an accompanying legend lists each category with its exact sales figure. The data is loaded from a local array, matching the sample dataset, and the visualization centers the pie within a 600x500 SVG canvas.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.