We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 695b11f commit 9ccaed7Copy full SHA for 9ccaed7
src/sankey.js
@@ -229,8 +229,8 @@ export default function Sankey() {
229
const columns = computeNodeLayers(graph);
230
initializeNodeBreadths(columns);
231
for (let i = 0; i < iterations; ++i) {
232
- const beta = ((i + 1) / iterations) ** 1.5;
233
- const alpha = 1 - beta;
+ const alpha = Math.pow(0.99, i);
+ const beta = Math.max(1 - alpha, (i + 1) / iterations);
234
relaxRightToLeft(columns, alpha, beta);
235
relaxLeftToRight(columns, alpha, beta);
236
}
0 commit comments