Skip to main content
100%

biPartite Example I

✓ Published0🌍 Public
NNPashaP
Last edited Aug 7, 2016
Created on Jun 5, 2016

This example demonstrates both vertical and horizontal bipartite graphs using the Viz.js biPartite API within a D3 v4 SVG environment. It visualizes a small dataset of relationships between primary and secondary categories, with two separate graphs rendered side-by-side to compare orientation styles. The code loads the Viz library and uses the `viz.bP()` function with customizable properties like bar size, padding, and edge modes. Bars are colored based on their category using the `fill` accessor, and hovering over bars triggers a transition effect as described in the accompanying readme.

AI-generated description

A simple example to show how to create a basic vertical and horizontal biPartite visualization. Hover over a bar for transition.

Part of a series of examples on biPartite graphs: Example II, Example III, Example IV, Example V

gpl-3.0 Licensed

Similar vizzes