Skip to main content
100%

ra_assignment

✓ Published0🌍 Public
RRukmini Devi Y
Last edited Nov 6, 2024
Created on Nov 6, 2024
Forked from Activity 6

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 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