Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Fork of Activity7_Q2

Public visualization

Viewing a saved revision (read-only)

44ed641ec2e24e66a15dad1a180ab280

Fork of Fork of Fork of Activity7_Q2

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

This example presents a responsive SVG area chart that compares the average height and lifespan of various tree species. It visualizes two distinct categories over a categorical species axis, using blue and orange filled regions to represent each metric. The chart loads CSV data from a GitHub gist and builds overlapping areas with D3’s `scaleBand`, `scaleLinear`, and `area` generators, while `axisBottom` and `axisLeft` render the axes. The visualization demonstrates asynchronous data loading via `csv` and D3 v7’s modular imports.

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.