Closed hski-github closed 3 years ago
I am now sorting by value, that means big lines are in the background and small lines are in the foreground. This is a useful improvement I think.
Still there are some optimizations useful for example if lines go in parallel from one bar to the other they should be drawn in the same layer (like blue in the screenshot below).
Another example where optimization would be useful. Below you see unnecessary crossing of lines, if the order in the bars would be different e.g. yellow A could go straight from middle to right side but is crossing the blue line. And C on the right side if red and yellow would be changed, than layout would avoid unnecessary complexity. I guess at the end, there needs to be different sorting options.
Would be interested in seeing more examples with layout issues from other users to think about possible further layout optimization. Please post a screenshots here if you see potential for better Sankey layout.
Now with recent code changes bar segments are sorted A > Z > Null, which gives more clarity for the visualization, still flow of rows need to be optimized to avoid unnecessary crossings.
Sorting of bar.barsegments.rows is required to reduce number of unnecessary crossings and decrease of complexity. It should sort in the bar on where it goes in the next bar.
With 0.9 some sorting optimization has been implemented.
Now it is sorted by the order in the previous column.
Before it was like this
With the recent improvements this issue can be closed. If new issues are reported by users then another round of improvements can start.
To align with colors from the color picker it was decided to not use Opacity like it is used in Sankey diagram of D3. But without opacity drawings are hidden by drawings in the foreground.