ECharts Sankey Sorting
by kelvinau
HTML
<script src="https://cdn.bootcss.com/echarts/4.0.2/echarts.min.js"></script>
<body>
<div id="main" style="width: 600px;height:400px;"></div>
</body>
JavaScript
var myChart = echarts.init(document.getElementById('main'));
var option = {
"series": [{
"type": "sankey",
"left": "100",
"right": "20%",
"bottom": "8%",
//"layoutIterations": 0,
"data": [{
"name": "srcip-172.16.68.166"
}, {
"name": "srcip-172.16.62.200"
}, {
"name": "appid-16177"
},{
"name": "appid-15817"
}, {
"name": "appid-15832"
}, {
"name": "appid-15816"
}, {
"name": "appid-15839"
}, {
"name": "appid-10"
}, {
"name": "appid-16001"
}, {
"name": "appid-16331"
}, {
"name": "appid-36441"
}, {
"name": "appid-16354"
}, {
"name": "appid-16541"
},{
"name": "appid-31077"
}, {
"name": "testNode-1"
},{
"name": "appid-17459"
}, ],
"links": [{
"source": "srcip-172.16.62.200",
"target": "appid-15832",
"value": 4.785209925385358
}, {
"source": "srcip-172.16.62.200",
"target": "appid-15817",
"value": 4.051253267406696
}, {
"source": "srcip-172.16.62.200",
"target": "appid-10",
"value": 5.205779391652783
}, {
"source": "srcip-172.16.62.200",
"target": "appid-15816",
"value": 4.289313158858062
}, {
"source": "srcip-172.16.62.200",
"target": "appid-16001",
"value": 4.070806025716954
}, {
"source": "srcip-172.16.68.166",
"target": "appid-15817",
"value": 4.79934323384637
}, {
"source": "srcip-172.16.68.166",
"target": "appid-16354",
"value": 4.45389208237266
}, {
"source": "srcip-172.16.68.166",
"target": "appid-16541",
"value": 4.422871649177701
}, {
"source": "srcip-172.16.68.166",
"target": "appid-10",
"value": 4.96667476041665
}, {
"source": "srcip-172.16.68.166",
"target": "appid-15839",
"value": 5.4653473266687564
}, {
"source": "appid-15839",
"target":...