🌍 Public
Viewing a saved revision (read-only)
0708dea04f0f4df8909006a7845e834c
Assignment-2 Question-1
This example presents a pie chart built with D3.js (v7) that visualizes categorical data by grouping rows from a CSV file by the "make" column. The chart uses `d3.pie` and `d3.arc` to generate the slices, with a color scale from `d3.scaleOrdinal` and `d3.schemeCategory10` to differentiate categories. A legend, constructed with SVG `rect` and `text` elements, maps each color to its category label. The SVG is rendered at 600x600 pixels, and the data is fetched from a remote URL via `d3.csv`.
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.