The same data from https://gist.github.com/tyzbit/e41587d241b0ab0f38273dc4b8dd571e, but in a VR viewer.
Last active
April 6, 2018 23:26
-
-
Save tyzbit/d1c83732d2767bb955125d41f5921888 to your computer and use it in GitHub Desktop.
Lightning-VR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getGraphDataSets() { | |
const loadBlocks = function(Graph) { | |
qwest.get('graph.json').then((_, data) => { | |
//data.nodes.forEach(node => { node.name = `${node.alias?node.alias+': ':''}${node.pub_key || node.id}` }); | |
data.nodes.forEach(node => { node.name = `${node.alias}` }); | |
Graph | |
.cooldownTicks(300) | |
.cooldownTime(20000) | |
.nodeColor('color') | |
.linkAutoColorBy('capacity') | |
.linkLabel('capacity') | |
.linkOpacity(0.4) | |
.forceEngine('ngraph') | |
.graphData(data); | |
}); | |
}; | |
loadBlocks.description = "<em>Lightning Mainnet</em> data (<a href='https://gist.github.com/tyzbit/93bb73fde487210974977ba29e04b2ed'>https://gist.github.com/tyzbit/93bb73fde487210974977ba29e04b2ed</a>)"; | |
return [loadBlocks]; | |
} |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
View raw
(Sorry about that, but we can’t show files that are this big right now.)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment