Task-9-Q1
✓ Published0🌍 Public
This example shows a pie chart of sales totals grouped by product line, with a tooltip that displays the product name and sales value on hover. It loads a CSV file from a GitHub gist using d3.csv, then aggregates the data with d3.rollups and d3.sum. The chart is rendered as SVG using d3.pie and d3.arc, with a color scale from d3.schemeCategory10. A legend and axis labels are added manually, and a hover tooltip is implemented with D3 mouse events.
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