You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Request to d3-sankey:
Is there an API for changing the width of each node according to the information of each node?
Currently the width of all nodes is the same, but I would like to be able to change each node width according to node properties such as node.length or node.lengthProportion.
graph.nodes.forEach(function(node) {
node.x1 = (node.x0 = x0 + Math.max(0, Math.min(x - 1, Math.floor(align.call(null, node, x)))) * kx) + dx;
// dx is the constant number, but could it be variable?
The text was updated successfully, but these errors were encountered:
Hello, I would appreciate D3!
Request to d3-sankey:
Is there an API for changing the width of each node according to the information of each node?
Currently the width of all nodes is the same, but I would like to be able to change each node width according to node properties such as
node.length
ornode.lengthProportion
.The text was updated successfully, but these errors were encountered: