Bipartite Chart using D3 in an angular directive