This commit is contained in:
Ivan Hörler 2018-07-14 20:14:48 +02:00
parent 84a6ff676f
commit 52df5d3a90
3 changed files with 24 additions and 29 deletions

View File

@ -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" />

View File

@ -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>