block by micahstubbs bf90fda6717e243832edad6ed9f82814

Sankey Gradients - Missing Stroke Gradients

Full Screen

oh no! now some of the link path gradients do not render 😱

sankey
  .nodes(graph.nodes)
  .links(graph.links)
  .layout(14); // any value > 13 breaks the link gradient

an iteration on by Patient Flow Sankey Particles from @micahstubbs

see also the working version with 13 layout iterations

inspired by the blog post Data-based and unique gradients for visualizations with d3.js and associated example Data based gradients - Simple - Solar system from @nadiehbremer

index.html

d3.sankey.js

data.json