百度echart 实现带图片头像的关系图

<!DOCTYPE html>
<html style="height: 100%">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta charset="utf-8">
<style type="text/css">
</style>
</head>
<body style="height: 100%; margin: 0">
<div id="container" style="width:600px; height:500px; overflow:hidden;border: 1px solid red;"></div>
<script type="text/javascript" src="echarts.min.js"></script>
<script type="text/javascript">
var myChart = echarts.init(document.getElementById("container"));
var echartJson ={
"series":[
{
"edgeLabel":{
"normal":{
"formatter":"{c}",
//"show":true,//是否显示枝干上的关系文字
}
},
//"edgeSymbol":"arrow",//circle,arrow//线两边显示箭头或圆
"force":{
"repulsion":200,//枝干线的长短
'edgeLength':40
},
"layout":"force",
"roam":true,
"itemStyle":{
"normal":{
"color":"#00ff00"//文字颜色
}
},
"label":{
"normal":{
//"show":true,//是否显示文字
}
},
"symbol":"circle",
"symbolSize":1,
"type":"graph",
'lineStyle': {//线的样式
'normal': {
'opacity': 1,
// width: 5,
curveness: 0,
&n

本文介绍如何使用百度ECharts库创建包含图片头像的关系图,通过自定义节点图标为关系图增加个性化元素,展示了从数据准备到图表展示的全过程。
最低0.47元/天 解锁文章
2363

被折叠的 条评论
为什么被折叠?



