Skip to main content
100%

Activity 7.1 Q1

✓ Published0🌍 Public
Kkesava
Last edited Nov 6, 2024
Created on Nov 6, 2024
Forked from Hello VizHub

This example visualizes total daily minutes spent on various social media platforms as a pie chart. It loads data from a CSV file hosted on GitHub, processes it by summing the `Daily_Minutes_Spent` per `App`, and renders SVG paths using `d3.pie` and `d3.arc`. A legend is added with colored rectangles and labels. The code specifically uses D3 v5 APIs such as `select`, `csv`, `scaleOrdinal`, and the pie/arc generators.

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.
MIT Licensed

Similar vizzes