🌍 Public
Viewing a saved revision (read-only)
154064856f5a48708a85bd590c605f12
scatter_KL
This visualization displays annual sales distribution for an Indian restaurant using a pie chart. It aggregates sales data by year from a CSV file and visually represents each year’s total as a proportional slice. The chart is created with D3 v6, using `d3.rollups` to group and sum data, `d3.pie` and `d3.arc` to generate the pie geometry, and `d3.scaleOrdinal` for slice colors. The SVG rendering includes a custom legend mapping each year to its color.
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.