title: D3 Sankey Chord Colors
body: <p>So I'm developing a Sankey diagram, using D3's Sankey API, and I'm trying to figure out how to change the color of the bands, or cords, going to and from the nodes. An example of what I'm trying to do can be found here:</p>
  
  <p><a href="http://tamc.github.io/Sankey/" rel="nofollow">http://tamc.github.io/Sankey/</a></p>
  
  <p>I want to be able to individually choose each band and choose that individual band's color. I can't find any documentation for D3's Sankey API so I have no idea how to actually pull this off. I tried the <strong>setColors</strong> function that I found by searching through the code of the Sankey in the link that I provided. However, that doesn't seem to work with my code. I started my Sankey off using this code as a base:</p>
  
  <p><a href="http://tamc.github.io/Sankey/examples/simple.html" rel="nofollow">http://tamc.github.io/Sankey/examples/simple.html</a></p>
  
  <p>Can someone please give me an idea of how to change the color of a band using this as a reference?</p>
  
  <p>P.S. If someone could also fill me in on how to change the color of a node, as well, that would be great!</p>