mirror of
https://github.com/TBEDP/datavjs.git
synced 2025-12-08 19:45:52 +00:00
34 lines
698 B
HTML
34 lines
698 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>Hierarchical Edge Bundling</title>
|
|
<style type="text/css">
|
|
.node {
|
|
font: 12px sans-serif;
|
|
}
|
|
.link {
|
|
stroke: steelblue;
|
|
stroke-opacity: .4;
|
|
fill: none;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<script src="../../build/datav.js"></script>
|
|
<script src="../../lib/charts/bundle.js"></script>
|
|
<div id="chart"></div>
|
|
<script>
|
|
var bundle = new Bundle("chart", {
|
|
"diameter": 1000
|
|
});
|
|
DataV.json("data.json", function (source) {
|
|
bundle.setSource(source);
|
|
bundle.render();
|
|
});
|
|
</script>
|
|
</body>
|
|
|
|
</html>
|