Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Assigment2

Public visualization

Viewing a saved revision (read-only)

8be9194f08394c18a2041c48d17826d7

Assigment2

0 stars0🌍 Public
Llokesh kautharapu
Last edited Jul 13, 2024
Created on Jul 13, 2024
Forked from Hello VizHub

This example visualizes sales distribution by brand as an animated pie chart in SVG. It loads data from a CSV file via `d3.csv`, aggregates sales using `d3.rollup`, and renders slices with the `d3.arc` and `d3.pie` layouts. Hovering over a slice enlarges it via `d3.transition` and displays a bold label with the brand’s total sales. The chart includes a color-coded legend using `d3.scaleOrdinal` and a descriptive title.

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.