Skip to main content
100%

Fork of Fork of Activity7_Q2

✓ Published1🌍 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.
MIT Licensed

Similar vizzes