block by NPashaP 15084a19c660ea8af0143ca12aae7453

biPartite - fill

Full Screen

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

index.html