Closed wuyang26 closed 5 days ago
This is the representation of other controls
Hi, what input did you enter into https://sankeydiagram.net/?
sankeydiagram.txt
I tested this website "https://sankeydiagram.net" using the data above ,It has lost some data display
The effect displayed by this WPF library is as follows:
The data in this WPF library is displayed completely, but there is severe graphic overlap at certain positions.
Especially at nodes "Canada" and "Japan" with severe overlap,you can see that the other control at the top is displayed very well
I see. Thx for providing the data @wuyang26 The problem with missing data in the output is caused by the small numbers. It can partially be fixed by going into "Settings" and raising the "decimal precision" setting to a higher value.
But yeah, data should not be dropped either way, so I will work on a bugfix for that
Although some data was lost, the graphic avoidance was done very well.
I'm sorry, my previous statement was about the WPF library: https://github.com/iou90/SankeyDiagram I sent it to the wrong location. This library is a JavaScript library, not the same.
Great, :) I have released v1.4.1 now including a fix for the data-loss
After conducting some data tests, it has been found that the above libraries perform perfectly for layer by layer data transmission such as A ->B ->C ->D. However, if there is a cross level data transmission such as A ->B and A ->C, the design of graphic avoidance and anti overlap may not perform well, and further optimization may be needed. look the data: var datas = new List()
{
new SankeyData("United States 1", "Canada", 1.553 0.18),
new SankeyData("United States 1", "Mexico", 1.553 0.157),
new SankeyData("United States 1", "China", 1.553 0.084),
new SankeyData("United States 1", "Japan", 1.553 0.044),
SankeyDatas = datas;