activity9-1
✓ Published0🌍 Public
This example shows the distribution of occupations from an online food ordering dataset as a pie chart. It counts the occurrences of each occupation and visualizes the proportions using colored slices with an accompanying legend. The chart is built with D3 v6, using the `pie`, `arc`, `scaleOrdinal`, and `schemeCategory10` APIs. Data is loaded from a remote CSV file, parsed, and then rendered as an SVG with a fixed width and height.
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