javascript - echarts 关系图怎么把两者之间的关系显示在连线上
怪我咯
怪我咯 2017-04-11 11:24:24
[JavaScript讨论组]


links : [

            {source : '丽萨-乔布斯', target : '乔布斯', weight : 1, name: '女儿'},
            {source : '保罗-乔布斯', target : '乔布斯', weight : 2, name: '父亲'},
            {source : '克拉拉-乔布斯', target : '乔布斯', weight : 1, name: '母亲'},
            {source : '劳伦-鲍威尔', target : '乔布斯', weight : 2},
            {source : '史蒂夫-沃兹尼艾克', target : '乔布斯', weight : 3, name: '合伙人'},
            {source : '奥巴马', target : '乔布斯', weight : 1},
            {source : '比尔-盖茨', target : '乔布斯', weight : 1, name: '竞争对手'},
            {source : '乔纳森-艾夫', target : '乔布斯', weight : 1, name: '爱将'},
            {source : '蒂姆-库克', target : '乔布斯', weight : 1},
            {source : '龙-韦恩', target : '乔布斯', weight : 1},
            {source : '克拉拉-乔布斯', target : '保罗-乔布斯', weight : 1},
            {source : '奥巴马', target : '保罗-乔布斯', weight : 1},
            {source : '奥巴马', target : '克拉拉-乔布斯', weight : 1},
            {source : '奥巴马', target : '劳伦-鲍威尔', weight : 1},
            {source : '奥巴马', target : '史蒂夫-沃兹尼艾克', weight : 1},
            {source : '比尔-盖茨', target : '奥巴马', weight : 6},
            {source : '比尔-盖茨', target : '克拉拉-乔布斯', weight : 1},
            {source : '蒂姆-库克', target : '奥巴马', weight : 1}
        ]
怪我咯
怪我咯

走同样的路,发现不同的人生

全部回复(1)
巴扎黑
 {source : '丽萨-乔布斯', 
    target : '乔布斯', 
    weight : 1, 
    name: '女儿',
    label: {
      normal: {
           show: true,
           formatter: function(x){return x.data.name;}
               }
            },
  },
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号