Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Assignment_2

Public visualization

Viewing a saved revision (read-only)

2d24275e0e324c63a26ff3c12dd49eca

Assignment_2

0 stars0🌍 Public
Hharinathchakali@gmail.com
Last edited Jul 13, 2024
Created on Jul 13, 2024
Forked from Hello VizHub

This pie chart visualizes the distribution of holiday types from a CSV dataset, showing the proportion of each category such as Holiday, Event, and Transfer. The chart uses d3.pie and d3.arc to generate the slices, with d3.scaleOrdinal and d3.schemeCategory10 for coloring. Labels appear on each slice using arc.centroid for positioning, and a legend displays the categories with their corresponding colors. The code loads data via d3.csv and renders the visualization as SVG elements.

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.