All examples By author By category About

NPashaP

biPartite - fill

viz.bP().fill

The fill method is used to set the fill color function for the bars and edges. The function will be passed an object of the type {primary:...,secondary:...} and should return a color.

The example on the left is using the primary attribute to color whereas the example on the right is using the secondary attribute to color.

For other options and examples, check VizJS