Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Activity7_Q2

Public visualization

Viewing a saved revision (read-only)

8e0a8fe2ee9a4cd88d9603c1cecf089b

Fork of Fork of Activity7_Q2

0 stars1🌍 Public
VVarshith Peddineni
Last edited Nov 6, 2024
Created on Nov 6, 2024

This D3.js v7 example displays an area chart comparing the average height and lifespan of various tree species, with each metric represented as a separate filled area. The code loads data from a GitHub-hosted CSV file using `d3.csv` and maps the fields to categorical and linear scales via `d3.scaleBand` and `d3.scaleLinear`. Areas are generated with `d3.area`, and axes are positioned using `d3.axisBottom` and `d3.axisLeft`.

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.