This example shows how to set the color of the links based on values of the column name with myChart.linkColor(). A color scale is defined to map the values to colors. The column name is passed as the first attribute. The second attribute ist an options object where the scale property is set.
Acknowledgements: