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