How the columns of echart Sanji Chart are arranged in the expected order

how the echart Sanji columns are arranged in the expected order

when echart uses Sanji chart, it is found that the order of columns is randomly variable. If you want to display it in the order of the expected data, you can"t do it all the time

.

the screenshot is as follows

clipboard.png

option = {

            color: colorPalette,
            tooltip: {
                    trigger: "item",
                    triggerOn: "mousemove"
                },
            
            animation: false,
            series: {
                type: "sankey",
                layout:"none",
                left:"10%",
                right:"10%",
                nodeGap:24,
                focusNodeAdjacency: true,
                // focusNodeAdjacency: "allEdges",
                lable: {
                    normal: {
                        position:"left",
                    }

                },
                data:data.node,
                links:data.link,

                itemStyle: {
                    normal: {
                        borderWidth: 1,
                        borderColor: "-sharpaaa"
                    }
                },
               
                lineStyle: {
                   normal: {
                       opacity:0.3,
                       color: "source",
                       curveness: 0.5
                   }
               }
            }
        };


"122ZeusPanda variant update code encryption means to disguise bank mail to steal victim account information" is the first one of data.name, which is expected to be listed above, but actually ranked second. Please also give us some advice on how the columns of Sanji chart are arranged according to data data. Now it seems that they are arranged at random.

Apr.07,2022

do you know the answer? if not, I can tell you

Menu