Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Untitled

Public visualization

Untitled

0 stars0🌍 Public
AAlice Anselmi
Last edited Jan 25, 2023
Created on Jan 25, 2023
Forked from D3 Starter

This stacked bar chart displays species abundance across multiple groups, with each bar segment representing a different soil condition. The chart uses D3 v4's `d3.stack()` to generate stacked series from CSV data, `d3.scaleBand` and `d3.scaleLinear` for axes, and `d3.schemeSet2` for categorical colors. Hovering over any section highlights all bars from that subgroup by adjusting opacity using `d3.selectAll` and class-based selectors, while the graph renders as SVG with an ordinal color scale.

AI-generated description

A demonstration of how to start using D3 version 6.

Comments

Sign in to join the discussion.

MIT Licensed