Skip to main content
100%

activity9-1

✓ Published0🌍 Public
Ssahaspragna6@gmail.com
Last edited Apr 21, 2024
Created on Apr 21, 2024
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes