ra_assignment
✓ Published0🌍 Public
A pie chart displays the distribution of housing furnishing statuses (furnished, semi-furnished, unfurnished) from a CSV dataset. The chart uses D3 v6's `d3.pie` to compute arc angles, `d3.arc` for path generation, and `d3.scaleOrdinal` for categorical color mapping. Labels show each category and its count, positioned at arc centroids. A legend lists the categories with colored swatches. Data loads asynchronously via `d3.csv` from a GitHub gist, with SVG rendering and explicit chart dimensions and margins.
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