Fork of Fork of Causes of Air pollution in Geneva-1
✓ Published3🌍 Public
NNita
Last edited Jan 3, 2021
Created on Jan 3, 2021
This visualization shows a cause-and-effect network of air pollution in Geneva, mapping root factors like climate change, air traffic, and commuter traffic through a directed graph of linked nodes. Each node represents a contributing cause, with links illustrating causal relationships. The code uses the D3.js v5 library with the `d3.sankey` layout, a custom module that positions nodes and draws curved paths between them via SVG. Node rectangles and link strokes are color-coded using `d3.scaleOrdinal` and `d3.schemeCategory10`. Data is loaded from a local `data.json` file containing node names and link pairs, with drag interactions enabled through `d3.drag` to reposition nodes and recompute link paths.
AI-generated descriptionAir pollution data for Geneva
MIT Licensed