Adding a D3.js method for color flow