Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ordering/diagram not rendering correctly #65

Open
brahn opened this issue Nov 8, 2024 · 0 comments
Open

ordering/diagram not rendering correctly #65

brahn opened this issue Nov 8, 2024 · 0 comments

Comments

@brahn
Copy link

brahn commented Nov 8, 2024

This might be a continuation of #64 --

I am trying to render the diagram with the input included below. If I comment out all the "positioning" lines and check the "hide numbers" and "sort nodes by line number" I get this graph, which seems reasonable --

Monosnap SankeyDiagram Tool: Generate Sankey Diagrams with ease 2024-11-08 13-50-39

However, as discussed in #64 I want to lay out the notes in a specific way. My intent is that the positioning lines (along with the sort nodes option) would make this work. However, when I uncomment the lines the diagram doesn't seem to change in a sensible way, and I see errors like this in the browser console:

Monosnap SankeyDiagram Tool: Generate Sankey Diagrams with ease 2024-11-08 13-55-07

If I refresh the webpage and enter the input afresh (with lines uncommented and with the same settings checked) I see the following (along with similar browser console errors). For what it's worth, the node positioning is almost exactly as desired -- excepting the absence of a visible Nov_6_A node, I see:

  • First column contains all Oct_09... nodes, second column contains all Oct_16... nodes, etc. through the last column containing all the Nov_6... nodes.
  • All the ...A nodes across the top row, ...B nodes in the second row, etc through ...E nodes across the bottom.
    But of course the "flow" shapes are missing.

Any tips on how to proceed?

Monosnap SankeyDiagram Tool: Generate Sankey Diagrams with ease 2024-11-08 13-53-05
// "positioning" lines
Oct_09_A [0] Oct_16_A [gray]
Oct_16_A [0] Oct_23_A [gray]
Oct_23_A [0] Oct_30_A [gray]
Oct_30_A [0] Nov_06_A [gray]
Oct_09_B [0] Oct_16_B [red]
Oct_16_B [0] Oct_23_B [red]
Oct_23_B [0] Oct_30_B [red]
Oct_30_B [0] Nov_06_B [red]
Oct_09_C [0] Oct_16_C [yellow]
Oct_16_C [0] Oct_23_C [yellow]
Oct_23_C [0] Oct_30_C [yellow]
Oct_30_C [0] Nov_06_C [yellow]
Oct_09_D [0] Oct_16_D [blue]
Oct_16_D [0] Oct_23_D [blue]
Oct_23_D [0] Oct_30_D [blue]
Oct_30_D [0] Nov_06_D [blue]
Oct_09_E [0] Oct_16_E [green]
Oct_16_E [0] Oct_23_E [green]
Oct_23_E [0] Oct_30_E [green]
Oct_30_E [0] Nov_06_E [green]

// Actual data
Oct_09_A [4562] Oct_16_B [gray]
Oct_09_A [2115] Oct_16_C [gray]
Oct_09_A [1195] Oct_16_D [gray]
Oct_09_A [7249] Oct_16_E [gray]
Oct_09_B [4628] Oct_16_B [red]
Oct_09_B [681] Oct_16_C [red]
Oct_09_B [31] Oct_16_D [red]
Oct_09_B [84] Oct_16_E [red]
Oct_09_C [22] Oct_16_B [yellow]
Oct_09_C [2363] Oct_16_C [yellow]
Oct_09_C [15] Oct_16_D [yellow]
Oct_09_C [306] Oct_16_E [yellow]
Oct_09_D [21] Oct_16_B [blue]
Oct_09_D [25] Oct_16_C [blue]
Oct_09_D [1317] Oct_16_D [blue]
Oct_09_D [308] Oct_16_E [blue]
Oct_09_E [43] Oct_16_B [green]
Oct_09_E [55] Oct_16_C [green]
Oct_09_E [12] Oct_16_D [green]
Oct_09_E [8345] Oct_16_E [green]
Oct_16_A [5942] Oct_23_B [gray]
Oct_16_A [99] Oct_23_C [gray]
Oct_16_A [79] Oct_23_D [gray]
Oct_16_A [11959] Oct_23_E [gray]
Oct_16_B [7907] Oct_23_B [red]
Oct_16_B [62] Oct_23_C [red]
Oct_16_B [11] Oct_23_D [red]
Oct_16_B [1296] Oct_23_E [red]
Oct_16_C [32] Oct_23_B [yellow]
Oct_16_C [2865] Oct_23_C [yellow]
Oct_16_C [8] Oct_23_D [yellow]
Oct_16_C [2334] Oct_23_E [yellow]
Oct_16_D [16] Oct_23_B [blue]
Oct_16_D [4] Oct_23_C [blue]
Oct_16_D [1306] Oct_23_D [blue]
Oct_16_D [1244] Oct_23_E [blue]
Oct_16_E [17] Oct_23_B [green]
Oct_16_E [2] Oct_23_C [green]
Oct_16_E [4] Oct_23_D [green]
Oct_16_E [16269] Oct_23_E [green]
Oct_23_A [1045] Oct_30_B [gray]
Oct_23_A [13] Oct_30_C [gray]
Oct_23_A [651] Oct_30_D [gray]
Oct_23_A [7215] Oct_30_E [gray]
Oct_23_B [12050] Oct_30_B [red]
Oct_23_B [34] Oct_30_C [red]
Oct_23_B [551] Oct_30_D [red]
Oct_23_B [1279] Oct_30_E [red]
Oct_23_C [7] Oct_30_B [yellow]
Oct_23_C [1975] Oct_30_C [yellow]
Oct_23_C [44] Oct_30_D [yellow]
Oct_23_C [1006] Oct_30_E [yellow]
Oct_23_D [9] Oct_30_B [blue]
Oct_23_D [928] Oct_30_D [blue]
Oct_23_D [471] Oct_30_E [blue]
Oct_23_E [36] Oct_30_B [green]
Oct_23_E [8] Oct_30_C [green]
Oct_23_E [13] Oct_30_D [green]
Oct_23_E [33045] Oct_30_E [green]
Oct_30_A [3355] Nov_06_B [gray]
Oct_30_A [2] Nov_06_C [gray]
Oct_30_A [1470] Nov_06_D [gray]
Oct_30_A [7825] Nov_06_E [gray]
Oct_30_B [9950] Nov_06_B [red]
Oct_30_B [3] Nov_06_C [red]
Oct_30_B [535] Nov_06_D [red]
Oct_30_B [2659] Nov_06_E [red]
Oct_30_C [50] Nov_06_B [yellow]
Oct_30_C [1121] Nov_06_C [yellow]
Oct_30_C [129] Nov_06_D [yellow]
Oct_30_C [730] Nov_06_E [yellow]
Oct_30_D [288] Nov_06_B [blue]
Oct_30_D [1205] Nov_06_D [blue]
Oct_30_D [694] Nov_06_E [blue]
Oct_30_E [50] Nov_06_B [green]
Oct_30_E [1] Nov_06_C [green]
Oct_30_E [25] Nov_06_D [green]
Oct_30_E [42940] Nov_06_E [green]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant