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
{{ message }}
Repository navigation
[BUG]: sankey: node.x / node.y of 0 is ignored #8150
Note that the center of a is not in the top left corner of the plot
Notes
This issue stems from the fact that the "Force node position" loop in src/traces/sankey/render.js uses a truthy test (if(trace.node.x[p] && trace.node.y[p])), and 0 is falsy
The fix is to change the test for missing values to != null
The mock sankey_x_y_with_arrows.json sets y: [0, 0, 0], so the fix changes its baseline
Activity