Skip to main content
100%

Comparison to d3.chord

✓ Published0🌍 Public
NNPashaP
Last edited Aug 8, 2016
Created on Aug 8, 2016

This example compares a chord diagram built with the `viz.ch()` API from VizJS to the classic d3.chord example. It visualizes a 4x4 matrix of numeric flows between four groups, with chords colored by the target group to reveal the breakdown of each source’s outgoing connections. The layout minimizes chord intersections, separating chords that share a starting point to reduce clutter. The chart is rendered as an SVG using d3.v4 for the base graphics, while the custom chord layout and arc-drawing logic come from VizJS.

AI-generated description

Compare this to the d3.chord example

  • Chords from any given group are non intersecting in viz.ch(). The chord layout is created to minimize chord intersections thus reducing cluttering.
  • viz.ch() uses a custom arc function so that two arcs starting from same point are non intersecting.
  • Instead of using value/source/target to color each chord, viz.ch() splits each chord between any two groups into two chords and are colored using the respective target colors. This way one is able to quickly see the breakdown of each group from its arc.

For other options/examples, see VizJS

gpl-3.0 Licensed

Similar vizzes