vis.js is a dynamic, browser-based visualization library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

32 lines
875 B

<!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-06-01', y: 10},
{id: 2, content: 'item 2', x: '2014-06-02', y: 20},
{id: 3, content: 'item 3', x: '2014-06-03', y: 30},
{id: 4, content: 'item 4', x: '2014-06-04', y: 10},
{id: 5, content: 'item 5', x: '2014-06-05', y: 20},
{id: 6, content: 'item 6', x: '2014-06-06', y: 30}
];
var options = {};
var graph2d = new vis.Graph2d(container, items, options);
</script>
</body>
</html>