消息关闭
    暂无新消息!

如图,设置成第二种格式的

4个回答

︿ 3
你没仔细看这个lineStyle 是一组数据可以设置一次的。也就是series  里面的多个data对应的lineStyle是可以设置多个的

 series: [
            {
                type: 'sankey',
                layout: 'none',
                data: data.nodes,
                links: data.links,
                itemStyle: {
                    normal: {
                        borderWidth: 1,
                        borderColor: '#aaa'
                    }
                },
                lineStyle: {
                    normal: {
                        color: 'source',
                        curveness: 0.5
                    }
                }
            },
            {
                type: 'sankey',
                layout: 'none',
                data: data.nodes,
                links: data.links,
                itemStyle: {
                    normal: {
                        borderWidth: 1,
                        borderColor: '#aaa'
                    }
                },
                lineStyle: {
                    normal: {
                        color: 'source',
                        curveness: 0.5
                    }
                }
            }
        ]
︿ 1
series 里面设置 。属性名 lineStyle
http://echarts.baidu.com/option.html#series-sankey.lineStyle