pyecharts简单绘制关系图
import json
from pyecharts.charts import Graph
import pyecharts.options as opts
# 加载数据
with open('D:\ChromeCoreDownloads\weibo.json', encoding='utf-8') as f:
j = json.load(f)
nodes,links,categories,cont,mid,user1=j
# 绘制
Graph(init_opts=opts.InitOpts(width='1800px',height='800px')).add('graph', nodes=nodes,links=links,categories=categories,label_opts=opts.LabelOpts(is_show=False)).render()
###结果图