Skip to main content
100%

Chord - ChordOpacity

✓ Published0🌍 Public
NNPashaP
Last edited Jul 31, 2016
Created on Jul 4, 2016

Two chord diagrams compare the visual effect of different opacity levels on inter-country migration flows. The left diagram uses the default chord opacity of 0.7, while the right applies a lower opacity of 0.2 through the `.chordOpacity()` method, making overlapping ribbons more transparent. Both are rendered as SVG using the VizJS `viz.ch()` API on top of D3 v4, with data from a hardcoded array of migration counts between five countries. Node colors are mapped per country via a custom `fill` function.

AI-generated description

viz.ch().chordOpacity

The left grpah has the default chordOpacity of 0.7 and the right has 0.2.

Part of a series of examples on Chord diagram using VizJS

gpl-3.0 Licensed

Similar vizzes