Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 7.1 question 2

Public visualization

Viewing a saved revision (read-only)

ba5a6bf3a31e4b04bf6c608e8aa3560a

Activity 7.1 question 2

0 stars0🌍 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.