Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

assignment 2

Public visualization

Viewing a saved revision (read-only)

67608819f6cc40cf85a348a8996155b7

assignment 2

0 stars0🌍 Public
Hhkodiripaka15@gmail.com
Last edited Apr 12, 2024
Created on Apr 11, 2024
Forked from Hello VizHub

This pie chart visualizes laptop sales by brand, displaying the proportion of units sold for each manufacturer. Built with D3.js (v6.7.0), it uses `d3.pie` and `d3.arc` to generate the sectors, with each slice labeled by brand and unit count. A color-coded legend at the bottom identifies each brand, while data is loaded from a remote CSV file. The visualization also supports reusable chart creation through a separate `scatterPlot.js` module defining a configurable pie chart function.

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.