Assignment_2
✓ Published0🌍 Public
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed