Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Fork of Fork of Activity7_Q2

Public visualization

Viewing a saved revision (read-only)

b5a77076361140509a95a1f76dd9e96f

Fork of Fork of Fork of Fork of Activity7_Q2

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

This visualization displays an area chart of tree species lifespans, with each species plotted along the x-axis and its average lifespan in years along the y-axis. The chart uses `d3.area()` to generate the orange filled area and `d3.scaleBand` and `d3.scaleLinear` for the axes. The data is loaded asynchronously from a CSV file via `d3.csv`. Axis labels and a legend clarify the mapping, while the chart is rendered as an SVG within a responsive container.

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.