Skip to main content
100%

Assignment_2

✓ Published0🌍 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.
MIT Licensed

Similar vizzes