philosophers relatedness test from http://graphalchemist.github.io/Alchemy/#/examples
This commit is contained in:
parent
84a6ff676f
commit
52df5d3a90
|
@ -114,7 +114,7 @@
|
|||
<Content Include="d3\README.md" />
|
||||
<Content Include="alchemy\testdata\actors.json" />
|
||||
<Content Include="alchemy\testdata\charlize.json" />
|
||||
<Content Include="alchemy\testdata\prestocratics.json" />
|
||||
<Content Include="alchemy\testdata\presocratics.json" />
|
||||
<Content Include="alchemy\styles\fonts\fontawesome-webfont.eot" />
|
||||
<Content Include="alchemy\styles\fonts\fontawesome-webfont.ttf" />
|
||||
<Content Include="alchemy\styles\fonts\fontawesome-webfont.woff" />
|
||||
|
|
|
@ -26,35 +26,30 @@
|
|||
<h1>EHEC Clusteranalysis</h1>
|
||||
</div>
|
||||
</form>
|
||||
<div class="alchemy" id="alchemy"></div>
|
||||
<div class="alchemy" id="alchemy"></div>
|
||||
|
||||
<script type="text/javascript">
|
||||
var some_data =
|
||||
{
|
||||
"nodes": [
|
||||
{
|
||||
"id": 1
|
||||
},
|
||||
{
|
||||
"id": 2
|
||||
},
|
||||
{
|
||||
"id": 3
|
||||
}
|
||||
],
|
||||
"edges": [
|
||||
{
|
||||
"source": 1,
|
||||
"target": 2
|
||||
},
|
||||
{
|
||||
"source": 1,
|
||||
"target": 3,
|
||||
}
|
||||
]
|
||||
};
|
||||
alchemy.begin({"dataSource": some_data})
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
var config = {
|
||||
dataSource: "alchemy/testdata/presocratics.json",
|
||||
cluster: true,
|
||||
clusterColours: ["#DD79FF", "#00FF30", "#5168FF", "#f83f00", "#ff8d8f"],
|
||||
forceLocked: false,
|
||||
nodeCaption: "title",
|
||||
edgeCaption: "relatedness",
|
||||
nodeCaptionsOnByDefault: true,
|
||||
nodeTypes: {"type":["philosopher"]},
|
||||
directedEdges:true,
|
||||
nodeStyle: {
|
||||
"philosopher": {
|
||||
"radius": 15
|
||||
}
|
||||
},
|
||||
initialScale: 0.5,
|
||||
initialTranslate: [250,150]
|
||||
}
|
||||
|
||||
alchemy = new Alchemy(config)
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue