<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<title>Graph2d | Basic demo</title>
|
|
|
|
<style type="text/css">
|
|
body, html {
|
|
font-family: sans-serif;
|
|
}
|
|
</style>
|
|
|
|
<script src="../../dist/vis.js"></script>
|
|
<link href="../../dist/vis.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="visualization"></div>
|
|
|
|
<script type="text/javascript">
|
|
var container = document.getElementById('visualization');
|
|
var items = [
|
|
{id: 1, content: 'item 1', x: '2014-04-01', y: 10},
|
|
{id: 2, content: 'item 2', x: '2014-04-02', y: 20},
|
|
{id: 3, content: 'item 3', x: '2014-04-03', y: 30},
|
|
{id: 4, content: 'item 4', x: '2014-04-04', y: 10},
|
|
{id: 5, content: 'item 5', x: '2014-04-05', y: 20},
|
|
{id: 6, content: 'item 6', x: '2014-04-06', y: 30}
|
|
];
|
|
var options = {};
|
|
var graph2d = new vis.Graph2d(container, items, options);
|
|
</script>
|
|
</body>
|
|
</html>
|