Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Task9_Q1

Public visualization

Viewing a saved revision (read-only)

d701845b62dd42edb06e2a2bd0eedfd5

Task9_Q1

0 stars1🌍 Public
Jjyothirmai318@gmail.com
Last edited Apr 18, 2024
Created on Apr 18, 2024
Forked from Task8_Task(1)

This pie chart displays the sales distribution for ten product types, ranging from Plushies with 5000 units to Watches with only 30 units. The chart is rendered as an SVG using the D3.js v4 library, with each slice colored via a custom ordinal palette. The code defines a fixed dataset inline, uses `d3.pie()` to compute the arcs, and `d3.arc()` to draw them. A clickable legend is positioned to the right, although the click handler does not implement filtering logic.

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.