赞
踩
提示:以下引入文件均可在安装完3d-force-graph的安装包里找到
提示:模拟数据可按如下格式填充
// gData数据格式如下 let gData = { "nodes": [ {"id": "Myriel", "group": 1}, {"id": "Napoleon", "group": 1} ], "links": [ {"source": "Napoleon", "target": "Myriel", "value": 1}, {"source": "Mlle.Baptistine", "target": "Myriel", "value": 8} ] } initBlockJson(){ const Graph = ForceGraph3D() (document.getElementById('3d-graph')) .nodeAutoColorBy('user') .nodeLabel(node => `${node.user}: ${node.description}`) .onNodeClick(node => window.open(`https://bl.ocks.org/${node.user}/${node.id}`, '_blank')) .graphData(gData); }
花未全开月未圆
半山微醉尽余欢
何需多虑盈亏事
终归小满胜万全
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。