A7-Q2
✓ Published0🌍 Public
This example visualizes the average weight and lifespan of animal species as two overlapping area charts, using steelblue and orange fills to distinguish the measurements. The data comes from a CSV file loaded with `d3.csv`, and the visualization is rendered as SVG using D3 v7's `d3.area`, `d3.scaleBand`, and `d3.scaleLinear`. Axes are generated with `d3.axisBottom` and `d3.axisLeft`, and a legend indicates which color corresponds to weight versus lifespan. The chart includes labeled axes for species and measurement units.
AI-generated descriptionMIT Licensed