Skip to main content
100%

Activity 7.1 question 2

✓ Published0🌍 Public
SSiddhardha
Last edited Nov 8, 2024
Created on Nov 8, 2024
Forked from question 2

This example visualizes the distribution of petal length across iris species using a stacked area chart. It loads CSV data from a GitHub gist via D3’s `csv` method, then applies `scaleBand` for species categories and `scaleLinear` for petal length values. The chart uses `stack` and `area` generators to render a single filled area, with `axisBottom` and `axisLeft` for axes, and a title annotation. SVG output is produced through D3 selections.

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