🌍 Public
Viewing a saved revision (read-only)
4a19c3df41144408814e6f51c3992c1e
Question1_PieChart
This pie chart displays the proportional distribution of 30 car brands by their reported values. Each slice is sized according to its numeric value, with labels positioned at the slice centroids. A legend lists the brands and their corresponding colors. Created with D3 v7, the visualization uses `d3.pie()` to compute arc data, `d3.arc()` to generate the SVG paths, and `d3.scaleOrdinal` with `schemeCategory10` for coloring. The SVG container is centered, with labels rendered as text elements and the legend manually constructed.
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.