🌍 Public
Viewing a saved revision (read-only)
e62c7933ba6f4bfcab95ee7a3c1d35b1
Q1_VT
This visualization presents a pie chart classifying grocery items by their total dollar amounts, with each slice labeled and color-coded to a legend. It uses D3 v5’s `pie` and `arc` generators to compute and draw the SVG segments, while `scaleOrdinal` assigns colors. Data is fetched as CSV from a GitHub gist, and values are formatted with `d3.format`.
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.