Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity-7_Q1

Public visualization

Viewing a saved revision (read-only)

6114270b2c614e838d559d7ad26402b9

Activity-7_Q1

0 stars2🌍 Public
1180030215cse@gmail.com
Last edited Nov 9, 2024
Created on Nov 5, 2024
Forked from Hello VizHub

This pie chart visualizes product sales distribution across categories, using a standard D3 pie layout with labeled slices and a color-coded legend. The data is loaded from a remote CSV file via `d3.csv` and rendered as SVG. It uses `d3.pie()` for arc generation, `d3.arc()` for path construction, and `d3.scaleOrdinal` with `d3.schemeCategory10` for categorical colors, with text labels positioned using `arc.centroid`.

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.