Echarts 桑基图

Javascript

chart = $p.echarts("my_chart", {
    type: "sankey",
    title: {
        text: '来源分析'
    }
});

chart.load({
    links: [
        {"source": "首页", "target": "签到领金币", "value": 83034},
        {"source": "首页", "target": "进入iBuick", "value": 8098},
        {"source": "首页", "target": "油费随手记", "value": 6868},
        {"source": "首页", "target": "违章查询", "value": 4336},
        {"source": "签到领金币", "target": "幸运大抽奖", "value": 61785},
        {"source": "签到领金币", "target": "进入个人中心", "value": 1797}
    ]
}, function (options) {
    return options;
});

基于版本

[v3.2.3] https://github.com/ecomfe/echarts/tree/3.2.3

更多实例

http://echarts.baidu.com/examples.html