hski-github / spotfire-sankey-diagram

Spotfire mods visualization for Sankey diagram
MIT License
4 stars 4 forks source link

Simplify visualization with less crossings and clear flow #5

Closed hski-github closed 3 years ago

hski-github commented 3 years ago

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.

image

image

image

hski-github commented 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.

image

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).

image

hski-github commented 3 years ago

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.

image

image

hski-github commented 3 years ago

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.

hski-github commented 3 years ago

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.

hski-github commented 3 years ago

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.

hski-github commented 3 years ago

With 0.9 some sorting optimization has been implemented.

Now it is sorted by the order in the previous column. image

Before it was like this image

hski-github commented 3 years ago

With the recent improvements this issue can be closed. If new issues are reported by users then another round of improvements can start.