{{current_example.desc}}
<html>
<head>
<link rel="stylesheet" href="http://cdn.graphalchemist.com/alchemy.min.css"/>
</head>
<body>
<div class="alchemy" id="graph"></div>
<script src="http://cdn.graphalchemist.com/alchemy.min.js"></script>
<script type="text/javascript">
var config = {
dataSource: 'data/charlize.json',
linkDistance: function(){ return 40; },
nodeTypes: {"type":["movie",
"award",
"person"]},
caption: function(node){
return node.caption;
}
};
alchemy.begin(config)
</script>
</body>
</html>
circle {
fill: white;
fill-opacity: .5;
stroke-width: 3;
stroke-opacity: 1;
stroke: black;
}
circle.root {
stroke-width: 5;
fill: lightblue;
fill-opacity: 1;
}
circle.award {
stroke: yellow;
stroke-width: 1;
}
circle.person {
stroke: lightblue;
stroke-width: 1;
}
.selected circle{
fill-opacity: 1;
stroke-width: 4;
stroke: lightblue;
}
.edge {
stroke-linecap: round;
stroke: lightblue;
stroke-opacity: 0.4;
stroke-width: 2;
}
.edge.NOMINATED {
stroke: lightblue;
}
.edge.RECEIVED {
stroke-dasharray: 10,5,2,2,2,5;
stroke: yellow;
stroke-opacity: 1;
}
.edge.ACTED_IN {
stroke: green;
}
.edge.selected {
stroke: lightblue;
stroke-opacity: 1;
stroke-dasharray: none;
}